X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/b70da7b8ea15ab48bb2f34155567cea6dffc8fc9..9169a28c6b2eec43ced9fdf88d30bdb3232188c3:/test/models/note_comment_test.rb diff --git a/test/models/note_comment_test.rb b/test/models/note_comment_test.rb index bfedcf125..f4dd645ee 100644 --- a/test/models/note_comment_test.rb +++ b/test/models/note_comment_test.rb @@ -8,7 +8,7 @@ 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| @@ -27,7 +27,7 @@ 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|