spec/integration/client_create_spec.rb in knife-17.4.18 vs spec/integration/client_create_spec.rb in knife-17.4.46
- old
+ new
@@ -48,10 +48,9 @@
expect { knife("client create -k bah") }.to raise_error(Net::HTTPClientException)
end
it "saves the private key to a file" do
Dir.mktmpdir do |tgt|
- File.open("#{tgt}/bah.pem", "w") { |pub| pub.write("test key") }
knife("client create -f #{tgt}/bah.pem bah").should_succeed stderr: out
expect(File).to exist("#{tgt}/bah.pem")
end
end