X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/c8ee1351049ef1bb4d7b50d071b2a96154266d1d..f3ff36418b60a56f18525900720e6ff9d21f516d:/test/unit/old_relation_tag_test.rb diff --git a/test/unit/old_relation_tag_test.rb b/test/unit/old_relation_tag_test.rb index d651810c0..ece55d8d5 100644 --- a/test/unit/old_relation_tag_test.rb +++ b/test/unit/old_relation_tag_test.rb @@ -1,11 +1,10 @@ require File.dirname(__FILE__) + '/../test_helper' -class OldRelationTagTest < Test::Unit::TestCase - fixtures :relation_tags - set_fixture_class :relation_tags => OldRelationTag +class OldRelationTagTest < ActiveSupport::TestCase + api_fixtures def test_tag_count - assert_equal 3, OldRelationTag.count + assert_equal 7, OldRelationTag.count end def test_length_key_valid @@ -16,7 +15,7 @@ class OldRelationTagTest < Test::Unit::TestCase tag.version = 1 tag.k = key*i tag.v = "v" - assert_valid tag + assert tag.valid? end end @@ -28,7 +27,7 @@ class OldRelationTagTest < Test::Unit::TestCase tag.version = 1 tag.k = "k" tag.v = val*i - assert_valid tag + assert tag.valid? end end