Class: TreeTestWithoutOrder
- Inherits:
-
Test::Unit::TestCase
- Object
- Test::Unit::TestCase
- TreeTestWithoutOrder
- Defined in:
- vendor/plugins/acts_as_tree/test/acts_as_tree_test.rb
Instance Method Summary
Instance Method Details
- (Object) setup
202 203 204 205 206 |
# File 'vendor/plugins/acts_as_tree/test/acts_as_tree_test.rb', line 202 def setup setup_db @root1 = TreeMixinWithoutOrder.create! @root2 = TreeMixinWithoutOrder.create! end |
- (Object) teardown
208 209 210 |
# File 'vendor/plugins/acts_as_tree/test/acts_as_tree_test.rb', line 208 def teardown teardown_db end |
- (Object) test_root
212 213 214 |
# File 'vendor/plugins/acts_as_tree/test/acts_as_tree_test.rb', line 212 def test_root assert [@root1, @root2].include?(TreeMixinWithoutOrder.root) end |
- (Object) test_roots
216 217 218 |
# File 'vendor/plugins/acts_as_tree/test/acts_as_tree_test.rb', line 216 def test_roots assert_equal [], [@root1, @root2] - TreeMixinWithoutOrder.roots end |