X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/0814b4096c443e2ab3c09baa058aa81a00d205d1..e5604ce98e267cb0cec7dd27078a9e86c919eeb1:/test/models/old_relation_tag_test.rb diff --git a/test/models/old_relation_tag_test.rb b/test/models/old_relation_tag_test.rb index 5c27ef3ea..d9dae2473 100644 --- a/test/models/old_relation_tag_test.rb +++ b/test/models/old_relation_tag_test.rb @@ -1,8 +1,6 @@ require "test_helper" class OldRelationTagTest < ActiveSupport::TestCase - api_fixtures - def test_length_key_valid tag = create(:old_relation_tag) (0..255).each do |i| @@ -47,7 +45,7 @@ class OldRelationTagTest < 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