aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test
diff options
context:
space:
mode:
authorMarkus Reiter2017-03-16 09:00:57 +0100
committerMarkus Reiter2017-03-16 09:00:57 +0100
commit2c8544832eb75d2ce7a76ac178d1018c166d653a (patch)
treee6b90567b683d9670766e543b9f9ab67a6b40475 /Library/Homebrew/test
parent0f35f4ca1e01d18824831727ad08e93bc3f9160b (diff)
downloadbrew-2c8544832eb75d2ce7a76ac178d1018c166d653a.tar.bz2
Add test for command help strings.
Diffstat (limited to 'Library/Homebrew/test')
-rw-r--r--Library/Homebrew/test/cask/cli_spec.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/Library/Homebrew/test/cask/cli_spec.rb b/Library/Homebrew/test/cask/cli_spec.rb
index 0dac89b0e..9bf14fd89 100644
--- a/Library/Homebrew/test/cask/cli_spec.rb
+++ b/Library/Homebrew/test/cask/cli_spec.rb
@@ -63,4 +63,10 @@ describe Hbc::CLI, :cask do
described_class.process("noop")
end
end
+
+ it "provides a help message for all commands" do
+ described_class.command_classes.each do |command_class|
+ expect(command_class.help).to match(/\w+/), command_class.name
+ end
+ end
end