X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/bde5fb48dbe2159f6f631ea6ed3604c97412f7c6..efc65b86a23032e7867314082f80e1da3654b51a:/test/system/report_note_test.rb?ds=inline diff --git a/test/system/report_note_test.rb b/test/system/report_note_test.rb index c4bcc612d..0756c8af7 100644 --- a/test/system/report_note_test.rb +++ b/test/system/report_note_test.rb @@ -31,7 +31,8 @@ class ReportNoteTest < ApplicationSystemTestCase end def test_can_report_notes_with_author - note = create(:note_comment, :author => create(:user)).note + user = create(:user) + note = create(:note_comment, :author => user, :note => build(:note, :author => user)).note sign_in_as(create(:user)) visit note_path(note)