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
commite7e0441f993b8487a90e37a8e81146d479a80945 (patch)
tree81038c8de08839e32ed718221e5611286585bfbb /Library
parentecb63c22b066a08295fad428475c7f6fdd5b1882 (diff)
downloadhomebrew-e7e0441f993b8487a90e37a8e81146d479a80945.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