spec/command/init_spec.rb in conjur-cli-4.21.0 vs spec/command/init_spec.rb in conjur-cli-4.21.1

- old
+ new

@@ -81,28 +81,13 @@ it "can't get the cert" do expect { invoke }.to raise_error(GLI::CustomExit, /unable to retrieve certificate/i) end end - # KEG: These tests have a nasty habit of hanging -# describe_command 'init -a the-account -h google.com' do -# it "writes the config and cert" do -# HighLine.any_instance.stub(:ask).and_return "yes" -# File.should_receive(:open).twice -# invoke -# end -# end -# describe_command 'init -a the-account -h https://google.com' do -# it "writes the config and cert" do -# HighLine.any_instance.stub(:ask).and_return "yes" -# File.should_receive(:open).twice -# invoke -# end -# end - describe_command 'init -a the-account -h localhost -c the-cert' do it "writes config and cert files" do expect(File).to receive(:open).twice + expect(Conjur::Command::Init).to receive(:configure_cert_store).with "the-cert" invoke end end context "in a temp dir" do