Sha256: 39d691d39c2d0b341e59f87acf4ec072311ae0ae9eb744a1dd97f1d4ade57f42

Contents?: true

Size: 590 Bytes

Versions: 20

Compression:

Stored size: 590 Bytes

Contents

describe Commander::HelpFormatter do
  
  before :each do
    mock_terminal
  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

20 entries across 20 versions & 4 rubygems

Version Path
crishoj-commander-3.3.0 spec/help_formatters/base_spec.rb
ktec-commander-3.3.1 spec/help_formatters/base_spec.rb
visionmedia-commander-3.1.0 spec/help_formatters/base_spec.rb
visionmedia-commander-3.1.1 spec/help_formatters/base_spec.rb
visionmedia-commander-3.1.2 spec/help_formatters/base_spec.rb
visionmedia-commander-3.1.4 spec/help_formatters/base_spec.rb
visionmedia-commander-3.1.5 spec/help_formatters/base_spec.rb
visionmedia-commander-3.1.6 spec/help_formatters/base_spec.rb
visionmedia-commander-3.1.7 spec/help_formatters/base_spec.rb
visionmedia-commander-3.1.8 spec/help_formatters/base_spec.rb
visionmedia-commander-3.2.0 spec/help_formatters/base_spec.rb
visionmedia-commander-3.2.2 spec/help_formatters/base_spec.rb
visionmedia-commander-3.2.3 spec/help_formatters/base_spec.rb
visionmedia-commander-3.2.4 spec/help_formatters/base_spec.rb
visionmedia-commander-3.2.5 spec/help_formatters/base_spec.rb
visionmedia-commander-3.2.6 spec/help_formatters/base_spec.rb
visionmedia-commander-3.2.7 spec/help_formatters/base_spec.rb
visionmedia-commander-3.2.8 spec/help_formatters/base_spec.rb
visionmedia-commander-3.2.9 spec/help_formatters/base_spec.rb
commander-3.3.0 spec/help_formatters/base_spec.rb