Sha256: c78b8abc37cc29b4001a35fe0d74b8e3ea42dd4934f8223f840a9fd51133d1c5

Contents?: true

Size: 454 Bytes

Versions: 12

Compression:

Stored size: 454 Bytes

Contents

require_relative '../spec_helper'
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

12 entries across 12 versions & 1 rubygems

Version Path
kontena-cli-1.1.6 spec/kontena/main_command_spec.rb
kontena-cli-1.1.5 spec/kontena/main_command_spec.rb
kontena-cli-1.1.5.rc3 spec/kontena/main_command_spec.rb
kontena-cli-1.1.5.rc2 spec/kontena/main_command_spec.rb
kontena-cli-1.1.5.rc1 spec/kontena/main_command_spec.rb
kontena-cli-1.1.4 spec/kontena/main_command_spec.rb
kontena-cli-1.1.3 spec/kontena/main_command_spec.rb
kontena-cli-1.1.2 spec/kontena/main_command_spec.rb
kontena-cli-1.1.2.rc2 spec/kontena/main_command_spec.rb
kontena-cli-1.1.2.rc1 spec/kontena/main_command_spec.rb
kontena-cli-1.1.1 spec/kontena/main_command_spec.rb
kontena-cli-1.1.1.rc1 spec/kontena/main_command_spec.rb