From 2c8544832eb75d2ce7a76ac178d1018c166d653a Mon Sep 17 00:00:00 2001 From: Markus Reiter Date: Thu, 16 Mar 2017 09:00:57 +0100 Subject: Add test for command help strings. --- Library/Homebrew/test/cask/cli_spec.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Library/Homebrew/test') 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 -- cgit v1.2.3