Sha256: 3ca9d5871761591cbc17141349855a74383cb1969bfa9caa5b88e0ba9838b3f0

Contents?: true

Size: 420 Bytes

Versions: 49

Compression:

Stored size: 420 Bytes

Contents

require 'kontena/main_command'

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

  describe '--version' do
    it 'outputs the version number and exits' do
      expect do
        expect{subject.run(['--version'])}.to output(/kontena-cli #{Kontena::Cli::VERSION}/).to_stdout
      end.to raise_error(SystemExit) do |exc|
        expect(exc.status).to eq 0
      end
    end
  end
end

Version data entries

49 entries across 49 versions & 1 rubygems

Version Path
kontena-cli-1.3.5 spec/kontena/main_command_spec.rb
kontena-cli-1.3.5.rc1 spec/kontena/main_command_spec.rb
kontena-cli-1.4.0 spec/kontena/main_command_spec.rb
kontena-cli-1.4.0.rc2 spec/kontena/main_command_spec.rb
kontena-cli-1.4.0.rc1 spec/kontena/main_command_spec.rb
kontena-cli-1.4.0.pre14 spec/kontena/main_command_spec.rb
kontena-cli-1.4.0.pre13 spec/kontena/main_command_spec.rb
kontena-cli-1.4.0.pre12 spec/kontena/main_command_spec.rb
kontena-cli-1.4.0.pre11 spec/kontena/main_command_spec.rb
kontena-cli-1.4.0.pre10 spec/kontena/main_command_spec.rb
kontena-cli-1.4.0.pre9 spec/kontena/main_command_spec.rb
kontena-cli-1.4.0.pre8 spec/kontena/main_command_spec.rb
kontena-cli-1.4.0.pre7 spec/kontena/main_command_spec.rb
kontena-cli-1.4.0.pre6 spec/kontena/main_command_spec.rb
kontena-cli-1.4.0.pre5 spec/kontena/main_command_spec.rb
kontena-cli-1.4.0.pre4 spec/kontena/main_command_spec.rb
kontena-cli-1.4.0.pre3 spec/kontena/main_command_spec.rb
kontena-cli-1.4.0.pre2 spec/kontena/main_command_spec.rb
kontena-cli-1.4.0.pre1 spec/kontena/main_command_spec.rb
kontena-cli-1.3.4 spec/kontena/main_command_spec.rb