spec/kitchen/driver/linode_spec.rb in kitchen-linode-0.11.0 vs spec/kitchen/driver/linode_spec.rb in kitchen-linode-0.12.0
- old
+ new
@@ -44,12 +44,14 @@
end
describe '#finalize_config' do
before(:each) { allow(File).to receive(:exist?).and_return(false) }
- context 'both private and public key info provided' do
+ context 'private key, public key, and api key provided' do
let(:config) do
- { private_key_path: '/tmp/key', public_key_path: '/tmp/key.pub' }
+ { private_key_path: '/tmp/key',
+ public_key_path: '/tmp/key.pub',
+ api_key: 'mykey' }
end
it 'raises no error' do
expect(driver.finalize_config!(instance)).to be
end
\ No newline at end of file