Use a local instead of an instance variable

This commit is contained in:
Jack Nagel 2015-02-06 22:33:01 -05:00
parent 5e62d7503e
commit 4851b1e7a8

View File

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