]> git.openstreetmap.org Git - rails.git/blobdiff - test/models/note_comment_test.rb
Merge remote-tracking branch 'upstream/pull/2167'
[rails.git] / test / models / note_comment_test.rb
index 6bda0ee7d363fb3cf7c74241399b376c36e5eb53..bfedcf12592730f18947552ddf5022ff3b0048de 100644 (file)
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
 require "test_helper"
 
 class NoteCommentTest < ActiveSupport::TestCase
@@ -15,7 +14,7 @@ class NoteCommentTest < ActiveSupport::TestCase
     bad.each do |event|
       note_comment = create(:note_comment)
       note_comment.event = event
-      assert !note_comment.valid?, "#{event} is valid when it shouldn't be"
+      assert_not note_comment.valid?, "#{event} is valid when it shouldn't be"
     end
   end
 
@@ -34,7 +33,7 @@ class NoteCommentTest < ActiveSupport::TestCase
     bad.each do |body|
       note_comment = create(:note_comment)
       note_comment.body = body
-      assert !note_comment.valid?, "#{body} is valid when it shouldn't be"
+      assert_not note_comment.valid?, "#{body} is valid when it shouldn't be"
     end
   end
 end