spec/kontena/cli/common_spec.rb in kontena-cli-0.12.1 vs spec/kontena/cli/common_spec.rb in kontena-cli-0.12.2
- old
+ new
@@ -44,9 +44,13 @@
]
})
expect(subject.current_grid).to eq('foo_grid')
end
+ it 'returns nil if settings are not present' do
+ allow(subject).to receive(:current_master).and_raise(ArgumentError)
+ expect(subject.current_grid).to be_nil
+ end
end
describe '#api_url' do
it 'raises error by default' do
expect {