Added more fixtures and tests for node versioning calls.

This commit is contained in:
Matt Amos 2008-10-15 11:12:26 +00:00
parent e7147d0d7a
commit 6a276202e5
7 changed files with 137 additions and 8 deletions

View file

@ -6,10 +6,12 @@ class CurrentNodeTagTest < Test::Unit::TestCase
set_fixture_class :current_node_tags => :NodeTag
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(:used_node_2, 1)
node_tag_count(:node_with_versions, 2)
end
def node_tag_count (node, count)