Added more fixtures and tests for node versioning calls.
This commit is contained in:
parent
e7147d0d7a
commit
6a276202e5
7 changed files with 137 additions and 8 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue