message title shouldn't accept invalid utf-8 sequences - test currently fails
[rails.git] / test / unit / current_node_tag_test.rb
index 7fb1deff544a0b88499a5918bf58a84c521c86c7..143fa24422de5c5b03a7d6d3b8c4e1d31d25d8fa 100644 (file)
@@ -2,14 +2,16 @@ require File.dirname(__FILE__) + '/../test_helper'
 
 class CurrentNodeTagTest < Test::Unit::TestCase
   fixtures :current_node_tags, :current_nodes
 
 class CurrentNodeTagTest < Test::Unit::TestCase
   fixtures :current_node_tags, :current_nodes
-  set_fixture_class :current_nodes => :Node
-  set_fixture_class :current_node_tags => :NodeTag
+  set_fixture_class :current_nodes => Node
+  set_fixture_class :current_node_tags => NodeTag
   
   def test_tag_count
   
   def test_tag_count
-    assert_equal 3, NodeTag.count
+    assert_equal 6, NodeTag.count
     node_tag_count(:visible_node, 1)
     node_tag_count(:invisible_node, 1)
     node_tag_count(:used_node_1, 1)
     node_tag_count(:visible_node, 1)
     node_tag_count(:invisible_node, 1)
     node_tag_count(:used_node_1, 1)
+    node_tag_count(:used_node_2, 1)
+    node_tag_count(:node_with_versions, 2)
   end
   
   def node_tag_count (node, count)
   end
   
   def node_tag_count (node, count)