]> git.openstreetmap.org Git - rails.git/blobdiff - test/unit/node_tag_test.rb
Rework application configuration
[rails.git] / test / unit / node_tag_test.rb
index bd7d9f6e330daea1656d0e3d21acf83dc0ac1114..cfe0b57f22b26ae8a5d90402c2fd4d9deecbec5f 100644 (file)
@@ -1,10 +1,10 @@
 require File.dirname(__FILE__) + '/../test_helper'
 
-class NodeTagTest < Test::Unit::TestCase
+class NodeTagTest < ActiveSupport::TestCase
   api_fixtures
   
   def test_tag_count
-    assert_equal 6, NodeTag.count
+    assert_equal 7, NodeTag.count
     node_tag_count(:visible_node, 1)
     node_tag_count(:invisible_node, 1)
     node_tag_count(:used_node_1, 1)
@@ -24,7 +24,7 @@ class NodeTagTest < Test::Unit::TestCase
       tag.id = current_node_tags(:t1).id
       tag.k = key*i
       tag.v = "v"
-      assert_valid tag
+      assert tag.valid?
     end
   end
   
@@ -35,7 +35,7 @@ class NodeTagTest < Test::Unit::TestCase
       tag.id = current_node_tags(:t1).id
       tag.k = "k"
       tag.v = val*i
-      assert_valid tag
+      assert tag.valid?
     end
   end