]> git.openstreetmap.org Git - rails.git/blobdiff - test/unit/old_relation_tag_test.rb
Rework application configuration
[rails.git] / test / unit / old_relation_tag_test.rb
index aee2901cdfe8df7464506254447d9c465a20244d..ece55d8d5da69891f7b876be86d2f46ea3176e23 100644 (file)
@@ -1,10 +1,10 @@
 require File.dirname(__FILE__) + '/../test_helper'
 
-class OldRelationTagTest < Test::Unit::TestCase
+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
@@ -15,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
   
@@ -27,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