Sha256: 4a7407bec972c0bdba582f072e85036ee41eea80e9efab38d3d20e5ed8de40e5
Contents?: true
Size: 745 Bytes
Versions: 4
Compression:
Stored size: 745 Bytes
Contents
describe Commander::HelpFormatter do before :each do mock_terminal end def run *args new_command_runner *args do program :help_formatter, Commander::HelpFormatter::Base end.run! @output.string end it "should display global help using --help switch" do run('--help').should == "Implement global help here\n" end it "should display global help using help command" do run('help').should == "Implement global help here\n" end it "should display command help" do run('help', 'test').should == "Implement help for test here\n" end it "should display command help using --help switch" do run('--help', 'test').should == "Implement help for test here\n" end end
Version data entries
4 entries across 4 versions & 1 rubygems