diff options
author | aycabta <[email protected]> | 2020-05-17 18:45:39 +0900 |
---|---|---|
committer | aycabta <[email protected]> | 2020-05-24 23:47:24 +0900 |
commit | c6c023317ce691e4e9a685a36554714330f2d3e1 (patch) | |
tree | 0f04488094afcccc909fdfb2fea7dbc8a32f6a4b /test/rdoc/support | |
parent | 3169ffc0d61ce357ff2e5728b234355fe1523b69 (diff) |
[ruby/rdoc] Check uninitialized instance variable in test
https://github.com/ruby/rdoc/commit/3dcd5ddbb6
Diffstat (limited to 'test/rdoc/support')
-rw-r--r-- | test/rdoc/support/test_case.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/rdoc/support/test_case.rb b/test/rdoc/support/test_case.rb index bce480252f..6d397625e8 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 # Abstract test-case teardown def teardown - ENV["HOME"] = @orig_home + ENV["HOME"] = @orig_home if defined?(@orig_home) super end |