class TreeTestWithoutOrder
Public Instance Methods
setup()
click to toggle source
# File lib/plugins/acts_as_tree/test/acts_as_tree_test.rb, line 202 def setup setup_db @root1 = TreeMixinWithoutOrder.create! @root2 = TreeMixinWithoutOrder.create! end
teardown()
click to toggle source
# File lib/plugins/acts_as_tree/test/acts_as_tree_test.rb, line 208 def teardown teardown_db end
test_root()
click to toggle source
# File lib/plugins/acts_as_tree/test/acts_as_tree_test.rb, line 212 def test_root assert [@root1, @root2].include?(TreeMixinWithoutOrder.root) end
test_roots()
click to toggle source
# File lib/plugins/acts_as_tree/test/acts_as_tree_test.rb, line 216 def test_roots assert_equal [], [@root1, @root2] - TreeMixinWithoutOrder.roots end