Sha256: 95085e40016e4010640b4badb82b90f8427dd5eef6a80c97b910da727b55c5d8

Contents?: true

Size: 918 Bytes

Versions: 14

Compression:

Stored size: 918 Bytes

Contents

require 'kontena/cli/cloud_command'

describe Kontena::Cli::CloudCommand do
  let(:subject) { described_class.new('kontena') }


  describe '#subcommand_missing' do
    it 'suggests plugin install for known cloud plugin commands' do
      expect{subject.run(['platform', 'xyz'])}.to exit_with_error.and output(/has not been installed/).to_stderr
      expect{subject.run(['organization', 'xyz'])}.to exit_with_error.and output(/has not been installed/).to_stderr
      expect{subject.run(['ir', 'xyz'])}.to exit_with_error.and output(/has not been installed/).to_stderr
      expect{subject.run(['region', 'xyz'])}.to exit_with_error.and output(/has not been installed/).to_stderr
      expect{subject.run(['node', 'xyz'])}.to exit_with_error.and output(/has not been installed/).to_stderr
      expect{subject.run(['token', 'xyz'])}.to exit_with_error.and output(/has not been installed/).to_stderr
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

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