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

ruby-changes:60220

From: Koichi <ko1@a...>
Date: Fri, 28 Feb 2020 17:59:03 +0900 (JST)
Subject: [ruby-changes:60220] 6787ccf238 (master): setup Other class.

https://git.ruby-lang.org/ruby.git/commit/?id=6787ccf238

From 6787ccf23837c50e51cb82813bb713fda052131e Mon Sep 17 00:00:00 2001
From: Koichi Sasada <ko1@a...>
Date: Fri, 28 Feb 2020 17:57:45 +0900
Subject: setup Other class.

Some tests need to setup Other class with OtherSetup proc.

diff --git a/test/ruby/test_module.rb b/test/ruby/test_module.rb
index cafb0cd..e5586ed 100644
--- a/test/ruby/test_module.rb
+++ b/test/ruby/test_module.rb
@@ -302,6 +302,8 @@ class TestModule < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_module.rb#L302
   end
 
   def test_nested_get
+    OtherSetup.call
+
     assert_equal Other, Object.const_get([self.class, 'Other'].join('::'))
     assert_equal User::USER, self.class.const_get([User, 'USER'].join('::'))
     assert_raise(NameError) {
@@ -310,6 +312,8 @@ class TestModule < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_module.rb#L312
   end
 
   def test_nested_get_symbol
+    OtherSetup.call
+
     const = [self.class, Other].join('::').to_sym
     assert_raise(NameError) {Object.const_get(const)}
 
@@ -345,6 +349,8 @@ class TestModule < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_module.rb#L349
   end
 
   def test_nested_defined_symbol
+    OtherSetup.call
+
     const = [self.class, Other].join('::').to_sym
     assert_raise(NameError) {Object.const_defined?(const)}
 
-- 
cgit v0.10.2


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

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