X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/e731dd71a77ad4ad1e9db22535e89444bb98e5d9..12a7c9d023bcca01657e357b2ed28cc6bcd20e06:/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|