summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--spec/unit/client_spec.rb8
1 files 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