diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2008-12-15 18:20:18 -0800 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2008-12-15 18:20:18 -0800 |
commit | 19be3d35b38b6685789d8d343617d465a3652717 (patch) | |
tree | a9556ab5a6c6c4972084287757be2cfc905dbfe7 /activesupport/test/inflector_test.rb | |
parent | 0d48408dccd2b69754310cb3702ddfe705dbcd12 (diff) | |
download | rails-19be3d35b38b6685789d8d343617d465a3652717.tar.gz rails-19be3d35b38b6685789d8d343617d465a3652717.tar.bz2 rails-19be3d35b38b6685789d8d343617d465a3652717.zip |
Revert "Make constantize look into ancestors"
[#410 state:open]
This reverts commit 262fef7ed57520b857605a0105fe7ba9265654f6.
Diffstat (limited to 'activesupport/test/inflector_test.rb')
-rw-r--r-- | activesupport/test/inflector_test.rb | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/activesupport/test/inflector_test.rb b/activesupport/test/inflector_test.rb index 2c422ebe72..d8c93dc9ae 100644 --- a/activesupport/test/inflector_test.rb +++ b/activesupport/test/inflector_test.rb @@ -2,21 +2,8 @@ require 'abstract_unit' require 'inflector_test_cases' module Ace - module Extension - def self.included(base) - base.extend(ClassMethods) - end - - module ClassMethods - def mission_accomplished? - false - end - end - end - module Base class Case - include Extension end end end @@ -180,9 +167,7 @@ class InflectorTest < Test::Unit::TestCase end def test_constantize_does_lexical_lookup - assert_equal InflectorTest, ActiveSupport::Inflector.constantize("Ace::Base::InflectorTest") - assert_nothing_raised { Ace::Base::Case::ClassMethods } - assert_nothing_raised { assert_equal Ace::Base::Case::ClassMethods, ActiveSupport::Inflector.constantize("Ace::Base::Case::ClassMethods") } + assert_raises(NameError) { ActiveSupport::Inflector.constantize("Ace::Base::InflectorTest") } end def test_ordinal |