Sha256: c77e1bb8dafd6102884cb0b4caac29d239353c4dfba2557f77a536648abcb822
Contents?: true
Size: 545 Bytes
Versions: 55
Compression:
Stored size: 545 Bytes
Contents
require "kontena/cli/version_command" describe Kontena::Cli::VersionCommand do include ClientHelpers let :http_client do double(:http_client) end describe '#execute' do it 'runs without errors' do expect(client).to receive(:http_client).and_return(http_client) expect(http_client).to receive(:get).with(path: '/').and_return(double(body: '{"version": "0.1"}')) expect { subject.run([]) }.to output("cli: #{Kontena::Cli::VERSION}\nmaster: 0.1 (#{subject.current_master.url})\n").to_stdout end end end
Version data entries
55 entries across 55 versions & 1 rubygems