diff options
| author | Markus Reiter | 2017-02-23 06:02:17 +0100 |
|---|---|---|
| committer | Markus Reiter | 2017-02-23 21:26:29 +0100 |
| commit | 9818b82b1bf0142f9f64d3707587ea4684b94dcd (patch) | |
| tree | 7f9897b768bcf252ff9985a9832e55b66d4ac5f9 /Library/Homebrew/test/cmd | |
| parent | c7121f6be50e44784e3e29114617c29715bd9c0f (diff) | |
| download | brew-9818b82b1bf0142f9f64d3707587ea4684b94dcd.tar.bz2 | |
Convert `brew --repository` test to spec.
Diffstat (limited to 'Library/Homebrew/test/cmd')
| -rw-r--r-- | Library/Homebrew/test/cmd/--repository_spec.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Library/Homebrew/test/cmd/--repository_spec.rb b/Library/Homebrew/test/cmd/--repository_spec.rb new file mode 100644 index 000000000..d3e531f7b --- /dev/null +++ b/Library/Homebrew/test/cmd/--repository_spec.rb @@ -0,0 +1,15 @@ +describe "brew --repository", :integration_test do + it "prints the path of the Homebrew repository" do + expect { brew "--repository" } + .to output("#{HOMEBREW_REPOSITORY}\n").to_stdout + .and not_to_output.to_stderr + .and be_a_success + end + + it "prints the path of a given Tap" do + expect { brew "--repository", "foo/bar" } + .to output("#{HOMEBREW_LIBRARY}/Taps/foo/homebrew-bar\n").to_stdout + .and not_to_output.to_stderr + .and be_a_success + end +end |
