diff options
| author | Markus Reiter | 2017-02-23 06:01:02 +0100 |
|---|---|---|
| committer | Markus Reiter | 2017-02-23 21:34:25 +0100 |
| commit | a3b2ae1fa12216200bd6399269f20d0a420aca49 (patch) | |
| tree | 63d7e7c424c7744232687375189bc998305a4ada /Library/Homebrew/test/dev-cmd | |
| parent | c7121f6be50e44784e3e29114617c29715bd9c0f (diff) | |
| download | brew-a3b2ae1fa12216200bd6399269f20d0a420aca49.tar.bz2 | |
Convert `brew formula` test to spec.
Diffstat (limited to 'Library/Homebrew/test/dev-cmd')
| -rw-r--r-- | Library/Homebrew/test/dev-cmd/formula_spec.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Library/Homebrew/test/dev-cmd/formula_spec.rb b/Library/Homebrew/test/dev-cmd/formula_spec.rb new file mode 100644 index 000000000..cc5b3e9e8 --- /dev/null +++ b/Library/Homebrew/test/dev-cmd/formula_spec.rb @@ -0,0 +1,10 @@ +describe "brew formula", :integration_test do + it "prints a given Formula's path" do + formula_file = setup_test_formula "testball" + + expect { brew "formula", "testball" } + .to output("#{formula_file}\n").to_stdout + .and not_to_output.to_stderr + .and be_a_success + end +end |
