X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/aa1fb6dbb8c2e71b8ce8c231ae1272a2dfebd75a..248ad3ae0584e0a158b7de2c3b5d8bee114509b0:/test/models/note_comment_test.rb?ds=sidebyside diff --git a/test/models/note_comment_test.rb b/test/models/note_comment_test.rb index 21d67dc67..bfedcf125 100644 --- a/test/models/note_comment_test.rb +++ b/test/models/note_comment_test.rb @@ -14,7 +14,7 @@ class NoteCommentTest < ActiveSupport::TestCase bad.each do |event| note_comment = create(:note_comment) note_comment.event = event - assert !note_comment.valid?, "#{event} is valid when it shouldn't be" + assert_not note_comment.valid?, "#{event} is valid when it shouldn't be" end end @@ -33,7 +33,7 @@ class NoteCommentTest < ActiveSupport::TestCase bad.each do |body| note_comment = create(:note_comment) note_comment.body = body - assert !note_comment.valid?, "#{body} is valid when it shouldn't be" + assert_not note_comment.valid?, "#{body} is valid when it shouldn't be" end end end