X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/b70da7b8ea15ab48bb2f34155567cea6dffc8fc9..81c11988f58fa54664d60c22f4f6b82f5af5ce1d:/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