diff options
| author | Xu Cheng | 2016-03-23 16:33:40 +0800 |
|---|---|---|
| committer | Xu Cheng | 2016-03-24 14:52:13 +0800 |
| commit | b8a4677de09082cb0e4850f38cfcb0201f0166ac (patch) | |
| tree | 7669bea07a5f5e77dcef47e64d0d9219fa5cb6be /Library/Homebrew/test | |
| parent | 773451f027b2564f8444c4180073593b5e033a28 (diff) | |
| download | brew-b8a4677de09082cb0e4850f38cfcb0201f0166ac.tar.bz2 | |
--repository: support to show tap path
This can become handy when we separate core code and formulae. For
example, we could use `cd $(brew --repo homebrew/core)` to go to core
tap path.
Closes Homebrew/homebrew#50346.
Signed-off-by: Xu Cheng <xucheng@me.com>
Diffstat (limited to 'Library/Homebrew/test')
| -rw-r--r-- | Library/Homebrew/test/test_integration_cmds.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Library/Homebrew/test/test_integration_cmds.rb b/Library/Homebrew/test/test_integration_cmds.rb index 52606da08..8a7c85551 100644 --- a/Library/Homebrew/test/test_integration_cmds.rb +++ b/Library/Homebrew/test/test_integration_cmds.rb @@ -124,6 +124,11 @@ class IntegrationCommandTests < Homebrew::TestCase cmd("--repository") end + def test_repository + assert_match "#{HOMEBREW_LIBRARY}/Taps/foo/homebrew-bar", + cmd("--repository", "foo/bar") + end + def test_help assert_match "Example usage:", cmd("help") |
