From 15ee9bd1b9ff3332d2197e29fffdffff82dda06f Mon Sep 17 00:00:00 2001 From: Jay Mundrawala Date: Tue, 26 Jan 2016 11:31:59 -0800 Subject: Fix client_spec --- spec/unit/client_spec.rb | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/spec/unit/client_spec.rb b/spec/unit/client_spec.rb index 82adf057dc..60b274a774 100644 --- a/spec/unit/client_spec.rb +++ b/spec/unit/client_spec.rb @@ -45,12 +45,16 @@ describe Chef::Client do end describe "authentication protocol selection" do - context "when openssl is not compiled with the FIPS module" do + context "when FIPS is disabled" do + before do + Chef::Config[:fips] = false + end + it "defaults to 1.1" do expect(Chef::Config[:authentication_protocol_version]).to eq("1.1") end end - context "when openssl is compiled with the FIPS module" do + context "when FIPS is enabled" do before do Chef::Config[:fips] = true end -- cgit v1.2.1