From 7c42552f16c646d5a21595bc008503b7bbb311f7 Mon Sep 17 00:00:00 2001 From: Matt Amos Date: Tue, 3 Apr 2012 18:11:20 +0100 Subject: [PATCH] Fixed fixture after adding link from redaction to user --- app/controllers/redactions_controller.rb | 2 +- test/fixtures/redactions.yml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/controllers/redactions_controller.rb b/app/controllers/redactions_controller.rb index 201f1883f..a70ada3ec 100644 --- a/app/controllers/redactions_controller.rb +++ b/app/controllers/redactions_controller.rb @@ -19,7 +19,7 @@ class RedactionsController < ApplicationController def create @redaction = Redaction.new - @redaction.user_id = @user.id + @redaction.user = @user @redaction.title = params[:redaction][:title] @redaction.description = params[:redaction][:description] # didn't see this come in from the form - maybe i'm doing something diff --git a/test/fixtures/redactions.yml b/test/fixtures/redactions.yml index 6933cb20d..c6e8569ab 100644 --- a/test/fixtures/redactions.yml +++ b/test/fixtures/redactions.yml @@ -2,5 +2,6 @@ example: id: 1 + user_id: 5 # the moderator user title: Example redaction description: Usually some text would go here to say something about why the redaction happened. -- 2.39.5