]> git.openstreetmap.org Git - rails.git/blobdiff - test/models/way_tag_test.rb
Improve model tests for issues
[rails.git] / test / models / way_tag_test.rb
index ae8be73b3f5183587e3e036b7e47f99546a5aac6..a3699cac4e1d311d45ea48f1cb586bb57f24a122 100644 (file)
@@ -1,8 +1,6 @@
 require "test_helper"
 
 class WayTagTest < ActiveSupport::TestCase
-  api_fixtures
-
   def test_length_key_valid
     tag = create(:way_tag)
     (0..255).each do |i|
@@ -46,7 +44,7 @@ class WayTagTest < ActiveSupport::TestCase
     tag.k = existing.k
     tag.v = existing.v
     assert tag.new_record?
-    assert !tag.valid?
+    assert_not tag.valid?
     assert_raise(ActiveRecord::RecordInvalid) { tag.save! }
     assert tag.new_record?
   end