X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/f7a35c5895b1bd830a9bf2c08ce36e265deb3e4c..206b6c9aefeb2e868db80f559d5022f01283af2b:/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|