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)
tag.id = current_node_tags(:t1).id
tag.k = key*i
tag.v = "v"
- assert_valid tag
+ assert tag.valid?
end
end
tag.id = current_node_tags(:t1).id
tag.k = "k"
tag.v = val*i
- assert_valid tag
+ assert tag.valid?
end
end