summaryrefslogtreecommitdiff
path: root/spec/functional/win32/registry_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/functional/win32/registry_spec.rb')
-rw-r--r--spec/functional/win32/registry_spec.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/spec/functional/win32/registry_spec.rb b/spec/functional/win32/registry_spec.rb
index 4e18074271..9aacc88638 100644
--- a/spec/functional/win32/registry_spec.rb
+++ b/spec/functional/win32/registry_spec.rb
@@ -41,9 +41,7 @@ describe "Chef::Win32::Registry", :windows_only do
#Create the node with ohai data
events = Chef::EventDispatch::Dispatcher.new
@node = Chef::Node.new
- ohai = Ohai::System.new
- ohai.all_plugins
- @node.consume_external_attrs(ohai.data,{})
+ @node.consume_external_attrs(OHAI_SYSTEM.data,{})
@run_context = Chef::RunContext.new(@node, {}, events)
#Create a registry object that has access ot the node previously created