diff options
Diffstat (limited to 'spec/unit/plugins/windows/fips_spec.rb')
-rw-r--r-- | spec/unit/plugins/windows/fips_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/unit/plugins/windows/fips_spec.rb b/spec/unit/plugins/windows/fips_spec.rb index 29138082..4aad7a40 100644 --- a/spec/unit/plugins/windows/fips_spec.rb +++ b/spec/unit/plugins/windows/fips_spec.rb @@ -24,7 +24,7 @@ describe Ohai::System, "plugin fips", :windows_only do let(:fips_key) { 'System\CurrentControlSet\Control\Lsa\FIPSAlgorithmPolicy' } let(:win_reg_entry) { { "Enabled" => enabled } } - before(:each) do + before do allow(plugin).to receive(:collect_os).and_return(:windows) allow(Win32::Registry::HKEY_LOCAL_MACHINE).to receive(:open).with(fips_key, arch).and_yield(win_reg_entry) end |