Sha256: 7428d99a9518da9b8a1283582971b5c5f0e47fb05e40b51532a262da689ff7bb

Contents?: true

Size: 545 Bytes

Versions: 3

Compression:

Stored size: 545 Bytes

Contents

describe Kontena::Plugin::Shell::HelpCommand do
  it 'displays help for kontena commands' do
    expect{described_class.new([], ['help', 'grid', 'ls']).run}.to output(/Usage.*OPTIONS/m).to_stdout
  end

  it 'displays help for kosh commands' do
    expect{described_class.new([], ['help', 'debug']).run}.to output(/toggle/m).to_stdout
  end

  it 'displays help for current context' do
    expect{described_class.new(Kontena::Plugin::Shell::Context.new('master user'), ['help']).run}.to output(/SUBCOMMAND.*invite.*list.*/m).to_stdout
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
kontena-plugin-shell-0.2.0 spec/kontena/plugin/shell/commands/help_spec.rb
kontena-plugin-shell-0.1.3 spec/kontena/plugin/shell/commands/help_spec.rb
kontena-plugin-shell-0.1.2 spec/kontena/plugin/shell/commands/help_spec.rb