1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[ruby/rdoc] Check uninitialized instance variable in test

https://github.com/ruby/rdoc/commit/3dcd5ddbb6
This commit is contained in:
aycabta 2020-05-17 18:45:39 +09:00
parent 3169ffc0d6
commit c6c023317c

View file

@ -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