]> git.openstreetmap.org Git - rails.git/blobdiff - test/unit/old_relation_tag_test.rb
Give a nice error message when parsing the nwr tags and they are missing the k and...
[rails.git] / test / unit / old_relation_tag_test.rb
index 309e2fe80899e5b7b9472b098b0430c6caa7e1af..ece55d8d5da69891f7b876be86d2f46ea3176e23 100644 (file)
@@ -1,11 +1,10 @@
 require File.dirname(__FILE__) + '/../test_helper'
 
-class RelationTagTest < 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, OldRlationTag.count
+    assert_equal 7, OldRelationTag.count
   end
   
   def test_length_key_valid
@@ -16,7 +15,7 @@ class RelationTagTest < 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 RelationTagTest < Test::Unit::TestCase
       tag.version = 1
       tag.k = "k"
       tag.v = val*i
-      assert_valid tag
+      assert tag.valid?
     end
   end