From b8a4677de09082cb0e4850f38cfcb0201f0166ac Mon Sep 17 00:00:00 2001 From: Xu Cheng Date: Wed, 23 Mar 2016 16:33:40 +0800 Subject: --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 --- Library/Homebrew/test/test_integration_cmds.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Library/Homebrew/test') 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") -- cgit v1.2.3