summaryrefslogtreecommitdiff
path: root/chef-config/spec/unit/fips_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'chef-config/spec/unit/fips_spec.rb')
-rw-r--r--chef-config/spec/unit/fips_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/chef-config/spec/unit/fips_spec.rb b/chef-config/spec/unit/fips_spec.rb
index d53096cead..0b52ddb7fc 100644
--- a/chef-config/spec/unit/fips_spec.rb
+++ b/chef-config/spec/unit/fips_spec.rb
@@ -1,6 +1,6 @@
#
# Author:: Matt Wrock (<matt@mattwrock.com>)
-# Copyright:: Copyright (c) 2016-2017, Chef Software Inc.
+# Copyright:: Copyright (c) 2016-2018, Chef Software Inc.
# License:: Apache License, Version 2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -32,7 +32,7 @@ RSpec.describe "ChefConfig.fips?" do
let(:fips_path) { "/proc/sys/crypto/fips_enabled" }
before(:each) do
- allow(ChefConfig).to receive(:windows?).and_return(false)
+ allow(ChefHelpers).to receive(:windows?).and_return(false)
allow(::File).to receive(:exist?).with(fips_path).and_return(true)
allow(::File).to receive(:read).with(fips_path).and_return(enabled)
end
@@ -69,7 +69,7 @@ RSpec.describe "ChefConfig.fips?" do
let(:win_reg_entry) { { "Enabled" => enabled } }
before(:each) do
- allow(ChefConfig).to receive(:windows?).and_return(true)
+ allow(ChefHelpers).to receive(:windows?).and_return(true)
allow(Win32::Registry::HKEY_LOCAL_MACHINE).to receive(:open).with(fips_key, arch).and_yield(win_reg_entry)
end