Sha256: 494f59caca3d954d1693e00c48ca1457b3a15f778e3fc93aa7933b882d9036ab

Contents?: true

Size: 367 Bytes

Versions: 31

Compression:

Stored size: 367 Bytes

Contents

require 'kontena/cli/plugins/install_command'

describe Kontena::Cli::Plugins::InstallCommand do
  let(:subject) { described_class.new([]) }

  it 'exits with error if plugin not found' do
    expect(subject).to receive(:installer).and_raise(StandardError, 'bar')
    expect{subject.run(['foofoo'])}.to exit_with_error.and output(/StandardError/).to_stderr
  end
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
kontena-cli-1.5.4 spec/kontena/cli/plugins/install_command_spec.rb
kontena-cli-1.5.4.rc1 spec/kontena/cli/plugins/install_command_spec.rb
kontena-cli-1.5.3 spec/kontena/cli/plugins/install_command_spec.rb
kontena-cli-1.5.2 spec/kontena/cli/plugins/install_command_spec.rb
kontena-cli-1.5.1 spec/kontena/cli/plugins/install_command_spec.rb
kontena-cli-1.5.0 spec/kontena/cli/plugins/install_command_spec.rb
kontena-cli-1.5.0.rc1 spec/kontena/cli/plugins/install_command_spec.rb
kontena-cli-1.5.0.pre5 spec/kontena/cli/plugins/install_command_spec.rb
kontena-cli-1.5.0.pre4 spec/kontena/cli/plugins/install_command_spec.rb
kontena-cli-1.5.0.pre3 spec/kontena/cli/plugins/install_command_spec.rb
kontena-cli-1.5.0.pre2 spec/kontena/cli/plugins/install_command_spec.rb
kontena-cli-1.5.0.pre1 spec/kontena/cli/plugins/install_command_spec.rb
kontena-cli-1.4.3 spec/kontena/cli/plugins/install_command_spec.rb
kontena-cli-1.4.3.rc1 spec/kontena/cli/plugins/install_command_spec.rb
kontena-cli-1.4.2 spec/kontena/cli/plugins/install_command_spec.rb
kontena-cli-1.4.2.rc1 spec/kontena/cli/plugins/install_command_spec.rb
kontena-cli-1.4.2.pre1 spec/kontena/cli/plugins/install_command_spec.rb
kontena-cli-1.4.1 spec/kontena/cli/plugins/install_command_spec.rb
kontena-cli-1.4.1.rc1 spec/kontena/cli/plugins/install_command_spec.rb
kontena-cli-1.4.1.pre1 spec/kontena/cli/plugins/install_command_spec.rb