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