aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test/dev-cmd
diff options
context:
space:
mode:
authorMarkus Reiter2017-02-24 17:21:55 +0100
committerGitHub2017-02-24 17:21:55 +0100
commitb6f56fc57799b2a5ca2c4140a960fe9cbcc253de (patch)
treec699ef5e005080eef8a69ac92ec07a4995a6959a /Library/Homebrew/test/dev-cmd
parent1c38fd6f09e8be14a950b594c85a9f2a13b59f81 (diff)
parenta3b2ae1fa12216200bd6399269f20d0a420aca49 (diff)
downloadbrew-b6f56fc57799b2a5ca2c4140a960fe9cbcc253de.tar.bz2
Merge pull request #2155 from reitermarkus/spec-formula-cmd
Convert `brew formula` test to spec.
Diffstat (limited to 'Library/Homebrew/test/dev-cmd')
-rw-r--r--Library/Homebrew/test/dev-cmd/formula_spec.rb10
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