aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2014-07-03 23:27:53 -0500
committerJack Nagel2014-07-03 23:27:53 -0500
commit9e19db0dd691673a97a278c8538346996344ca41 (patch)
tree014fa56bc92950129efbe71d070c25c46f1b8f30 /Library
parent4acf25a2b937598dde93a972d1929d7ee1ac9cb6 (diff)
downloadbrew-9e19db0dd691673a97a278c8538346996344ca41.tar.bz2
Don't assign @keg twice in setup
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/test/test_keg.rb9
1 files changed, 4 insertions, 5 deletions
diff --git a/Library/Homebrew/test/test_keg.rb b/Library/Homebrew/test/test_keg.rb
index c1ed51fe7..6489bdbdc 100644
--- a/Library/Homebrew/test/test_keg.rb
+++ b/Library/Homebrew/test/test_keg.rb
@@ -6,15 +6,14 @@ class LinkTests < Homebrew::TestCase
include FileUtils
def setup
- @keg = HOMEBREW_CELLAR/"foo/1.0"
- @keg.mkpath
- (@keg/"bin").mkpath
+ keg = HOMEBREW_CELLAR.join("foo", "1.0")
+ keg.join("bin").mkpath
%w{hiworld helloworld goodbye_cruel_world}.each do |file|
- touch @keg/"bin/#{file}"
+ touch keg.join("bin", file)
end
- @keg = Keg.new(@keg)
+ @keg = Keg.new(keg)
@mode = OpenStruct.new