aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/formula.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb
index 1236eaa2f..dd90d72ee 100644
--- a/Library/Homebrew/formula.rb
+++ b/Library/Homebrew/formula.rb
@@ -621,7 +621,7 @@ class Formula
end
def run_test
- @oldhome = ENV["HOME"]
+ old_home = ENV["HOME"]
self.build = Tab.for_formula(self)
mktemp do
@testpath = Pathname.pwd
@@ -630,7 +630,7 @@ class Formula
end
ensure
@testpath = nil
- ENV["HOME"] = @oldhome
+ ENV["HOME"] = old_home
end
def test_defined?