diff options
author | Nicholas Seckar <nseckar@gmail.com> | 2006-03-27 05:13:46 +0000 |
---|---|---|
committer | Nicholas Seckar <nseckar@gmail.com> | 2006-03-27 05:13:46 +0000 |
commit | 9efca53908c09b7f188183aec6c0a4a2df347316 (patch) | |
tree | bd1eacf10bdcaef1112bf0c36d3a3743fb092733 /activesupport/test/core_ext | |
parent | 24403498ba8582d29f55aab16ffd5920dec1c669 (diff) | |
download | rails-9efca53908c09b7f188183aec6c0a4a2df347316.tar.gz rails-9efca53908c09b7f188183aec6c0a4a2df347316.tar.bz2 rails-9efca53908c09b7f188183aec6c0a4a2df347316.zip |
Dependencies cleanup. Fixes #4221.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4060 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activesupport/test/core_ext')
-rw-r--r-- | activesupport/test/core_ext/module_test.rb | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/activesupport/test/core_ext/module_test.rb b/activesupport/test/core_ext/module_test.rb index 464196a0ec..eb92fbc12c 100644 --- a/activesupport/test/core_ext/module_test.rb +++ b/activesupport/test/core_ext/module_test.rb @@ -82,4 +82,20 @@ class ModuleTest < Test::Unit::TestCase assert_raises(ArgumentError) { eval($nowhere) } assert_raises(ArgumentError) { eval($noplace) } end + + def test_parent + assert_equal Yz::Zy, Yz::Zy::Cd.parent + assert_equal Yz, Yz::Zy.parent + assert_equal Object, Yz.parent + end + + def test_parents + assert_equal [Yz::Zy, Yz, Object], Yz::Zy::Cd.parents + assert_equal [Yz, Object], Yz::Zy.parents + end + + def test_as_load_path + assert_equal 'yz/zy', Yz::Zy.as_load_path + assert_equal 'yz', Yz.as_load_path + end end
\ No newline at end of file |