Skip to content

Commit b219402

Browse files
authored
Merge pull request #769 from aycabta/check-uninitialized-instance-var
Check uninitialized instance variable in test
2 parents 78f3ce4 + 3dcd5dd commit b219402

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/rdoc/support/test_case.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def g.file_dir() end
7676
# Abstract test-case teardown
7777

7878
def teardown
79-
ENV["HOME"] = @orig_home
79+
ENV["HOME"] = @orig_home if defined?(@orig_home)
8080

8181
super
8282
end

0 commit comments

Comments
 (0)