Sha256: af20d185260e39e168880a223b90c8b0216c886ecd083c9cb2f83af27b886f9a
Contents?: true
Size: 685 Bytes
Versions: 8
Compression:
Stored size: 685 Bytes
Contents
require_relative "../../../spec_helper" require 'kontena/cli/master/use_command' describe Kontena::Cli::Master::UseCommand do let(:subject) do described_class.new(File.basename($0)) end let(:valid_settings) do {'current_server' => 'alias', 'servers' => [ {'name' => 'some_master', 'url' => 'some_master'}, {'name' => 'alias', 'url' => 'someurl', 'token' => '123456'} ] } end describe '#use' do it 'should update current master' do allow(subject).to receive(:settings).and_return(valid_settings) expect(subject).to receive(:current_master=).with('some_master') subject.run(['some_master']) end end end
Version data entries
8 entries across 8 versions & 1 rubygems