diff options
Diffstat (limited to 'test/ruby/test_module.rb')
-rw-r--r-- | test/ruby/test_module.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/ruby/test_module.rb b/test/ruby/test_module.rb index e3b433e2cb..c7acac05f9 100644 --- a/test/ruby/test_module.rb +++ b/test/ruby/test_module.rb @@ -981,4 +981,8 @@ class TestModule < Test::Unit::TestCase c.public_constant(:FOO) assert_equal("foo", c::FOO) end + + def test_constants_with_private_constant + assert(!(::TestModule).constants.include?(:PrivateClass)) + end end |