Sha256: 3b14c1c1709d1fdfd017f70a5fc78f8b9cbf5bbe8e007b1bb8569cc3ec8dd1a8
Contents?: true
Size: 795 Bytes
Versions: 3
Compression:
Stored size: 795 Bytes
Contents
require_relative '../spec_helper' require 'kontena_cli' describe Kontena do let(:subject) { described_class } describe '#run' do let(:whoami) { double(:whoami_command) } before(:each) do expect(Kontena::MainCommand).to receive(:new).and_call_original expect(Kontena::Cli::WhoamiCommand).to receive(:new).and_return(whoami) expect(whoami).to receive(:run).with(['--bash-completion-path']).and_return(true) end it 'accepts a command line as string' do subject.run('whoami --bash-completion-path') end it 'accepts a command line as a list of parameters' do subject.run('whoami', '--bash-completion-path') end it 'accepts a command line as an array' do subject.run(['whoami', '--bash-completion-path']) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
kontena-cli-1.1.0 | spec/kontena/kontena_cli_spec.rb |
kontena-cli-1.1.0.rc2 | spec/kontena/kontena_cli_spec.rb |
kontena-cli-1.1.0.rc1 | spec/kontena/kontena_cli_spec.rb |