X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/c2e12ed77d8223737fe8f8e2e2b21a0822153fa1..99ccffe4a9c0521d1202c4f0f1a37f8ef2dc0634:/test/controllers/notes_controller_test.rb diff --git a/test/controllers/notes_controller_test.rb b/test/controllers/notes_controller_test.rb index e846bbd6a..2203dcb60 100644 --- a/test/controllers/notes_controller_test.rb +++ b/test/controllers/notes_controller_test.rb @@ -245,8 +245,8 @@ class NotesControllerTest < ActionController::TestCase # Ensure that emails are sent to users note_with_comments_by_users = create(:note) do |note| - create(:note_comment, :note => note, :author_id => users(:normal_user).id) - create(:note_comment, :note => note, :author_id => users(:second_public_user).id) + create(:note_comment, :note => note, :author => users(:normal_user)) + create(:note_comment, :note => note, :author => users(:second_public_user)) end assert_difference "NoteComment.count", 1 do assert_difference "ActionMailer::Base.deliveries.size", 2 do @@ -934,13 +934,13 @@ class NotesControllerTest < ActionController::TestCase def test_mine_success create(:note) do |note| - create(:note_comment, :note => note, :author_id => users(:normal_user).id) + create(:note_comment, :note => note, :author => users(:normal_user)) end create(:note) do |note| - create(:note_comment, :note => note, :author_id => users(:second_public_user).id) + create(:note_comment, :note => note, :author => users(:second_public_user)) end create(:note, :status => "hidden") do |note| - create(:note_comment, :note => note, :author_id => users(:second_public_user).id) + create(:note_comment, :note => note, :author => users(:second_public_user)) end # Note that the table rows include a header row