diff options
author | Yves Senn <yves.senn@gmail.com> | 2015-09-07 08:51:06 +0200 |
---|---|---|
committer | Yves Senn <yves.senn@gmail.com> | 2015-09-07 08:52:36 +0200 |
commit | 2aad0b416806ea23431fff83cc3cab0072687f20 (patch) | |
tree | 38057dec71d99c92bf940e5005e97d29fbf99570 | |
parent | b5a489fc9c2c7939bc4b553b2a0a4e74f1179d56 (diff) | |
parent | f96c7d963c78b27249cc8166f6dcc3c221938fa6 (diff) | |
download | rails-2aad0b416806ea23431fff83cc3cab0072687f20.tar.gz rails-2aad0b416806ea23431fff83cc3cab0072687f20.tar.bz2 rails-2aad0b416806ea23431fff83cc3cab0072687f20.zip |
Merge pull request #21250 from ronakjangir47/safe_const
safe_constantize - Added Object scoped missing test cases
-rw-r--r-- | activesupport/test/constantize_test_cases.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/activesupport/test/constantize_test_cases.rb b/activesupport/test/constantize_test_cases.rb index 366e4e5ef0..1115bc0fd8 100644 --- a/activesupport/test/constantize_test_cases.rb +++ b/activesupport/test/constantize_test_cases.rb @@ -100,6 +100,10 @@ module ConstantizeTestCases assert_nil yield("Ace::Gas::ConstantizeTestCases") assert_nil yield("#<Class:0x7b8b718b>::Nested_1") assert_nil yield("Ace::gas") + assert_nil yield('Object::ABC') + assert_nil yield('Object::Object::Object::ABC') + assert_nil yield('A::Object::B') + assert_nil yield('A::Object::Object::Object::B') assert_raises(NameError) do with_autoloading_fixtures do |