[前][次][番号順一覧][スレッド一覧]

ruby-changes:55264

From: nobu <ko1@a...>
Date: Mon, 8 Apr 2019 22:47:43 +0900 (JST)
Subject: [ruby-changes:55264] nobu:r67471 (trunk): test_module.rb: fix a typo

nobu	2019-04-08 22:47:36 +0900 (Mon, 08 Apr 2019)

  New Revision: 67471

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=67471

  Log:
    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.

  Modified files:
    trunk/test/ruby/test_module.rb
Index: test/ruby/test_module.rb
===================================================================
--- test/ruby/test_module.rb	(revision 67470)
+++ test/ruby/test_module.rb	(revision 67471)
@@ -294,7 +294,7 @@ class TestModule < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_module.rb#L294
   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
 

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]