X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/f7a35c5895b1bd830a9bf2c08ce36e265deb3e4c..3d37044b67bfff18054682de8380bb3110d486d2:/test/models/note_comment_test.rb diff --git a/test/models/note_comment_test.rb b/test/models/note_comment_test.rb index bfedcf125..615586e56 100644 --- a/test/models/note_comment_test.rb +++ b/test/models/note_comment_test.rb @@ -8,13 +8,13 @@ class NoteCommentTest < ActiveSupport::TestCase ok.each do |event| note_comment = create(:note_comment) note_comment.event = event - assert note_comment.valid?, "#{event} is invalid, when it should be" + assert_predicate note_comment, :valid?, "#{event} is invalid, when it should be" end bad.each do |event| note_comment = create(:note_comment) note_comment.event = event - assert_not note_comment.valid?, "#{event} is valid when it shouldn't be" + assert_not_predicate note_comment, :valid?, "#{event} is valid when it shouldn't be" end end @@ -27,13 +27,13 @@ class NoteCommentTest < ActiveSupport::TestCase ok.each do |body| note_comment = create(:note_comment) note_comment.body = body - assert note_comment.valid?, "#{body} is invalid, when it should be" + assert_predicate note_comment, :valid?, "#{body} is invalid, when it should be" end bad.each do |body| note_comment = create(:note_comment) note_comment.body = body - assert_not note_comment.valid?, "#{body} is valid when it shouldn't be" + assert_not_predicate note_comment, :valid?, "#{body} is valid when it shouldn't be" end end end