Don't assign @keg twice in setup

This commit is contained in:
Jack Nagel 2014-07-03 23:27:53 -05:00
parent 4acf25a2b9
commit 9e19db0dd6

View File

@ -6,15 +6,14 @@ class LinkTests < Homebrew::TestCase
include FileUtils include FileUtils
def setup def setup
@keg = HOMEBREW_CELLAR/"foo/1.0" keg = HOMEBREW_CELLAR.join("foo", "1.0")
@keg.mkpath keg.join("bin").mkpath
(@keg/"bin").mkpath
%w{hiworld helloworld goodbye_cruel_world}.each do |file| %w{hiworld helloworld goodbye_cruel_world}.each do |file|
touch @keg/"bin/#{file}" touch keg.join("bin", file)
end end
@keg = Keg.new(@keg) @keg = Keg.new(keg)
@mode = OpenStruct.new @mode = OpenStruct.new