Don't assign @keg twice in setup
This commit is contained in:
parent
4acf25a2b9
commit
9e19db0dd6
@ -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
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user