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:
parent
3169ffc0d6
commit
c6c023317c
1 changed files with 1 additions and 1 deletions
|
@ -76,7 +76,7 @@ class RDoc::TestCase < Test::Unit::TestCase
|
||||||
# Abstract test-case teardown
|
# Abstract test-case teardown
|
||||||
|
|
||||||
def teardown
|
def teardown
|
||||||
ENV["HOME"] = @orig_home
|
ENV["HOME"] = @orig_home if defined?(@orig_home)
|
||||||
|
|
||||||
super
|
super
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue