test_formulary: use CoreFormulaRepository abstraction
This commit is contained in:
parent
c20809526c
commit
ba147818cb
@ -16,7 +16,7 @@ end
|
|||||||
class FormularyFactoryTest < Homebrew::TestCase
|
class FormularyFactoryTest < Homebrew::TestCase
|
||||||
def setup
|
def setup
|
||||||
@name = "testball_bottle"
|
@name = "testball_bottle"
|
||||||
@path = HOMEBREW_PREFIX/"Library/Formula/#{@name}.rb"
|
@path = CoreFormulaRepository.new.formula_dir/"#{@name}.rb"
|
||||||
@bottle_dir = Pathname.new("#{File.expand_path("..", __FILE__)}/bottles")
|
@bottle_dir = Pathname.new("#{File.expand_path("..", __FILE__)}/bottles")
|
||||||
@bottle = @bottle_dir/"testball_bottle-0.1.#{bottle_tag}.bottle.tar.gz"
|
@bottle = @bottle_dir/"testball_bottle-0.1.#{bottle_tag}.bottle.tar.gz"
|
||||||
@path.write <<-EOS.undent
|
@path.write <<-EOS.undent
|
||||||
@ -144,7 +144,7 @@ end
|
|||||||
class FormularyTapPriorityTest < Homebrew::TestCase
|
class FormularyTapPriorityTest < Homebrew::TestCase
|
||||||
def setup
|
def setup
|
||||||
@name = "foo"
|
@name = "foo"
|
||||||
@core_path = HOMEBREW_PREFIX/"Library/Formula/#{@name}.rb"
|
@core_path = CoreFormulaRepository.new.formula_dir/"#{@name}.rb"
|
||||||
@tap = Tap.new "homebrew", "foo"
|
@tap = Tap.new "homebrew", "foo"
|
||||||
@tap_path = @tap.path/"#{@name}.rb"
|
@tap_path = @tap.path/"#{@name}.rb"
|
||||||
code = <<-EOS.undent
|
code = <<-EOS.undent
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user