aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test/cmd
diff options
context:
space:
mode:
authorMarkus Reiter2017-02-25 03:25:46 +0100
committerGitHub2017-02-25 03:25:46 +0100
commit73d75ef07c28fed413ef2bbe0bfd339ba6a11b05 (patch)
tree40eca751a95d54b3097b22309e8c4e0043b1ff52 /Library/Homebrew/test/cmd
parente25b3e60cb1b2ed180dca403d2314bce4729fef4 (diff)
parentf4fb0615de48b239555a891dc04e278341ce1c48 (diff)
downloadbrew-73d75ef07c28fed413ef2bbe0bfd339ba6a11b05.tar.bz2
Merge pull request #2152 from reitermarkus/spec-commands
Convert `brew commands` test to spec.
Diffstat (limited to 'Library/Homebrew/test/cmd')
-rw-r--r--Library/Homebrew/test/cmd/commands_spec.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/Library/Homebrew/test/cmd/commands_spec.rb b/Library/Homebrew/test/cmd/commands_spec.rb
new file mode 100644
index 000000000..f42072956
--- /dev/null
+++ b/Library/Homebrew/test/cmd/commands_spec.rb
@@ -0,0 +1,7 @@
+describe "brew commands", :integration_test do
+ it "prints a list of all available commands" do
+ expect { brew "commands" }
+ .to output(/Built-in commands/).to_stdout
+ .and be_a_success
+ end
+end