]> git.openstreetmap.org Git - rails.git/blobdiff - test/models/note_comment_test.rb
Fix new rubocop warnings
[rails.git] / test / models / note_comment_test.rb
index bfedcf12592730f18947552ddf5022ff3b0048de..f4dd645ee21a9392d8e13f6f557e6142aac07e9e 100644 (file)
@@ -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|