From e1b592b508c72a56ae012869d97fe1580ff87246 Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 8 Apr 2019 13:47:36 +0000 Subject: test_module.rb: fix a typo * test/ruby/test_module.rb (TestModule#test_nested_get): fix a typo. nested module's name is a qualified path. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67471 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_module.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/ruby/test_module.rb') diff --git a/test/ruby/test_module.rb b/test/ruby/test_module.rb index 3bd438ef6e..b1ee7b0944 100644 --- a/test/ruby/test_module.rb +++ b/test/ruby/test_module.rb @@ -294,7 +294,7 @@ class TestModule < Test::Unit::TestCase end def test_nested_get - assert_equal Other, Object.const_get([self.class, Other].join('::')) + assert_equal Other, Object.const_get([self.class, 'Other'].join('::')) assert_equal User::USER, self.class.const_get([User, 'USER'].join('::')) end -- cgit v1.2.3