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

ruby-changes:61361

From: aycabta <ko1@a...>
Date: Sun, 24 May 2020 23:53:02 +0900 (JST)
Subject: [ruby-changes:61361] c6c023317c (master): [ruby/rdoc] Check uninitialized instance variable in test

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

From c6c023317ce691e4e9a685a36554714330f2d3e1 Mon Sep 17 00:00:00 2001
From: aycabta <aycabta@g...>
Date: Sun, 17 May 2020 18:45:39 +0900
Subject: [ruby/rdoc] Check uninitialized instance variable in test

https://github.com/ruby/rdoc/commit/3dcd5ddbb6

diff --git a/test/rdoc/support/test_case.rb b/test/rdoc/support/test_case.rb
index bce4802..6d39762 100644
--- a/test/rdoc/support/test_case.rb
+++ b/test/rdoc/support/test_case.rb
@@ -76,7 +76,7 @@ class RDoc::TestCase < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/rdoc/support/test_case.rb#L76
   # Abstract test-case teardown
 
   def teardown
-    ENV["HOME"] = @orig_home
+    ENV["HOME"] = @orig_home if defined?(@orig_home)
 
     super
   end
-- 
cgit v0.10.2


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

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