aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test/cmd
diff options
context:
space:
mode:
authorMarkus Reiter2017-02-25 07:23:49 +0100
committerGitHub2017-02-25 07:23:49 +0100
commit069cf2198c8617d3bae74238a04925fb8b542f8a (patch)
tree76493b1b6a7b1bded224e4b35d8183f7a0269cbe /Library/Homebrew/test/cmd
parentcdf9a0ddfbdbdb424b3cbdfda802f5aeab1eb7d0 (diff)
parentf955f8d384bccb27a6aa664ab77bb05645c970a9 (diff)
downloadbrew-069cf2198c8617d3bae74238a04925fb8b542f8a.tar.bz2
Merge pull request #2114 from reitermarkus/spec-info
Convert `brew info` test to spec.
Diffstat (limited to 'Library/Homebrew/test/cmd')
-rw-r--r--Library/Homebrew/test/cmd/info_spec.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/Library/Homebrew/test/cmd/info_spec.rb b/Library/Homebrew/test/cmd/info_spec.rb
new file mode 100644
index 000000000..d33035972
--- /dev/null
+++ b/Library/Homebrew/test/cmd/info_spec.rb
@@ -0,0 +1,10 @@
+describe "brew info", :integration_test do
+ it "prints information about a given Formula" do
+ setup_test_formula "testball"
+
+ expect { brew "info", "testball" }
+ .to output(/testball: stable 0.1/).to_stdout
+ .and not_to_output.to_stderr
+ .and be_a_success
+ end
+end