diff options
author | Andrew White <andyw@pixeltrix.co.uk> | 2012-05-19 15:44:19 +0100 |
---|---|---|
committer | Andrew White <andyw@pixeltrix.co.uk> | 2012-05-19 15:47:35 +0100 |
commit | 3d0e4895cdc82bee9fb6ccc1208baa93fc5101ef (patch) | |
tree | 4a4ebb849e59f3f4cac2e417248e4ac43051a38b /activesupport/test/constantize_test_cases.rb | |
parent | eb09411460d11c7b1b1b54272ba345a1e1cf472d (diff) | |
download | rails-3d0e4895cdc82bee9fb6ccc1208baa93fc5101ef.tar.gz rails-3d0e4895cdc82bee9fb6ccc1208baa93fc5101ef.tar.bz2 rails-3d0e4895cdc82bee9fb6ccc1208baa93fc5101ef.zip |
Handle case where ancestor is not the end of the chain
Diffstat (limited to 'activesupport/test/constantize_test_cases.rb')
-rw-r--r-- | activesupport/test/constantize_test_cases.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/activesupport/test/constantize_test_cases.rb b/activesupport/test/constantize_test_cases.rb index 470213e9bd..ec05213409 100644 --- a/activesupport/test/constantize_test_cases.rb +++ b/activesupport/test/constantize_test_cases.rb @@ -29,6 +29,7 @@ module ConstantizeTestCases assert_nothing_raised { assert_equal Ace::Base::Case::Dice, yield("Ace::Base::Case::Dice") } assert_nothing_raised { assert_equal Ace::Base::Fase::Dice, yield("Ace::Base::Fase::Dice") } assert_nothing_raised { assert_equal Ace::Gas::Case, yield("Ace::Gas::Case") } + assert_nothing_raised { assert_equal Ace::Gas::Case::Dice, yield("Ace::Gas::Case::Dice") } assert_nothing_raised { assert_equal Case::Dice, yield("Case::Dice") } assert_nothing_raised { assert_equal Case::Dice, yield("Object::Case::Dice") } assert_nothing_raised { assert_equal ConstantizeTestCases, yield("ConstantizeTestCases") } @@ -52,6 +53,7 @@ module ConstantizeTestCases assert_nothing_raised { assert_equal Ace::Base::Case::Dice, yield("Ace::Base::Case::Dice") } assert_nothing_raised { assert_equal Ace::Base::Fase::Dice, yield("Ace::Base::Fase::Dice") } assert_nothing_raised { assert_equal Ace::Gas::Case, yield("Ace::Gas::Case") } + assert_nothing_raised { assert_equal Ace::Gas::Case::Dice, yield("Ace::Gas::Case::Dice") } assert_nothing_raised { assert_equal Case::Dice, yield("Case::Dice") } assert_nothing_raised { assert_equal Case::Dice, yield("Object::Case::Dice") } assert_nothing_raised { assert_equal ConstantizeTestCases, yield("ConstantizeTestCases") } |