diff options
| author | Xu Cheng | 2016-02-26 13:33:36 +0800 |
|---|---|---|
| committer | Xu Cheng | 2016-02-26 13:33:36 +0800 |
| commit | ba147818cb4144e579a35cac949ca97b1253d50e (patch) | |
| tree | 9f1125286fc2b52f091573f1e23e659830e039d1 /Library | |
| parent | c20809526c4f3c794de592dbde2663bb0da28451 (diff) | |
| download | brew-ba147818cb4144e579a35cac949ca97b1253d50e.tar.bz2 | |
test_formulary: use CoreFormulaRepository abstraction
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/test/test_formulary.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/test/test_formulary.rb b/Library/Homebrew/test/test_formulary.rb index 71575770d..f41bcde3a 100644 --- a/Library/Homebrew/test/test_formulary.rb +++ b/Library/Homebrew/test/test_formulary.rb @@ -16,7 +16,7 @@ end class FormularyFactoryTest < Homebrew::TestCase def setup @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 = @bottle_dir/"testball_bottle-0.1.#{bottle_tag}.bottle.tar.gz" @path.write <<-EOS.undent @@ -144,7 +144,7 @@ end class FormularyTapPriorityTest < Homebrew::TestCase def setup @name = "foo" - @core_path = HOMEBREW_PREFIX/"Library/Formula/#{@name}.rb" + @core_path = CoreFormulaRepository.new.formula_dir/"#{@name}.rb" @tap = Tap.new "homebrew", "foo" @tap_path = @tap.path/"#{@name}.rb" code = <<-EOS.undent |
