diff options
| author | Xu Cheng | 2016-02-26 19:43:49 +0800 |
|---|---|---|
| committer | Xu Cheng | 2016-04-02 21:51:36 +0800 |
| commit | deea4c82a4e64e746465cd74ea80e9afbedd9a91 (patch) | |
| tree | 7bc10cf25fcec31e79af9e7ec3ee35a794cbc092 /Library/Homebrew/test/test_formulary.rb | |
| parent | 2bb30fc5f0ab4146190e65d017ea0ad4eac40dbf (diff) | |
| download | brew-deea4c82a4e64e746465cd74ea80e9afbedd9a91.tar.bz2 | |
fix brew tests
Fix the `brew tests` problem caused by core/formula separation.
Diffstat (limited to 'Library/Homebrew/test/test_formulary.rb')
| -rw-r--r-- | Library/Homebrew/test/test_formulary.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Library/Homebrew/test/test_formulary.rb b/Library/Homebrew/test/test_formulary.rb index 48f155fcb..738012c17 100644 --- a/Library/Homebrew/test/test_formulary.rb +++ b/Library/Homebrew/test/test_formulary.rb @@ -112,7 +112,7 @@ class FormularyTapFactoryTest < Homebrew::TestCase end def teardown - @tap.path.parent.parent.rmtree + @tap.path.rmtree end def test_factory_tap_formula @@ -138,6 +138,8 @@ class FormularyTapFactoryTest < Homebrew::TestCase another_tap = Tap.new "homebrew", "bar" (another_tap.path/"#{@name}.rb").write @code assert_raises(TapFormulaAmbiguityError) { Formulary.factory(@name) } + ensure + another_tap.path.rmtree end end @@ -158,7 +160,7 @@ class FormularyTapPriorityTest < Homebrew::TestCase def teardown @core_path.unlink - @tap.path.parent.parent.rmtree + @tap.path.rmtree end def test_find_with_priority_core_formula |
