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_integration_cmds.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_integration_cmds.rb')
| -rw-r--r-- | Library/Homebrew/test/test_integration_cmds.rb | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Library/Homebrew/test/test_integration_cmds.rb b/Library/Homebrew/test/test_integration_cmds.rb index 8a7c85551..d20d1c033 100644 --- a/Library/Homebrew/test/test_integration_cmds.rb +++ b/Library/Homebrew/test/test_integration_cmds.rb @@ -217,7 +217,7 @@ class IntegrationCommandTests < Homebrew::TestCase assert_match "homebrew/foo", cmd("tap") assert_match "homebrew/versions", cmd("tap", "--list-official") - assert_match "1 tap", cmd("tap-info") + assert_match "2 taps", cmd("tap-info") assert_match "https://github.com/Homebrew/homebrew-foo", cmd("tap-info", "homebrew/foo") assert_match "https://github.com/Homebrew/homebrew-foo", cmd("tap-info", "--json=v1", "--installed") assert_match "Pinned homebrew/foo", cmd("tap-pin", "homebrew/foo") @@ -228,7 +228,7 @@ class IntegrationCommandTests < Homebrew::TestCase assert_equal "", cmd("tap", "homebrew/bar", path/".git", "-q", "--full") assert_match "Untapped", cmd("untap", "homebrew/bar") ensure - Tap::TAP_DIRECTORY.rmtree + path.rmtree end def test_missing @@ -339,13 +339,12 @@ class IntegrationCommandTests < Homebrew::TestCase end def test_tap_readme - (HOMEBREW_LIBRARY/"Taps").mkpath assert_match "brew install homebrew/foo/<formula>", cmd("tap-readme", "foo", "--verbose") readme = HOMEBREW_LIBRARY/"Taps/homebrew/homebrew-foo/README.md" assert readme.exist?, "The README should be created" ensure - (HOMEBREW_LIBRARY/"Taps").rmtree + (HOMEBREW_LIBRARY/"Taps/homebrew/homebrew-foo").rmtree end def test_unpack |
