aboutsummaryrefslogtreecommitdiffstats
path: root/test/ruby/test_module.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/ruby/test_module.rb')
-rw-r--r--test/ruby/test_module.rb14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/ruby/test_module.rb b/test/ruby/test_module.rb
index a51681d29b..7ba71852db 100644
--- a/test/ruby/test_module.rb
+++ b/test/ruby/test_module.rb
@@ -545,6 +545,20 @@ class TestModule < Test::Unit::TestCase
INPUT
end
+ def test_const_in_module
+ bug3423 = '[ruby-core:37698]'
+ assert_in_out_err([], <<-INPUT, %w[ok], [], bug3423)
+module LangModuleSpecInObject
+ module LangModuleTop
+ end
+end
+include LangModuleSpecInObject
+module LangModuleTop
+end
+puts "ok" if LangModuleSpecInObject::LangModuleTop == LangModuleTop
+INPUT
+ end
+
def test_class_variable_get
c = Class.new
c.class_eval('@@foo = :foo')