From: Matt Amos Date: Tue, 3 Apr 2012 17:11:20 +0000 (+0100) Subject: Fixed fixture after adding link from redaction to user X-Git-Tag: live~6202 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/7c42552f16c646d5a21595bc008503b7bbb311f7 Fixed fixture after adding link from redaction to user --- 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.