summaryrefslogtreecommitdiff
path: root/spec/functional/dsl/registry_helper_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/functional/dsl/registry_helper_spec.rb')
-rw-r--r--spec/functional/dsl/registry_helper_spec.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/spec/functional/dsl/registry_helper_spec.rb b/spec/functional/dsl/registry_helper_spec.rb
index 20efade913..47f5151888 100644
--- a/spec/functional/dsl/registry_helper_spec.rb
+++ b/spec/functional/dsl/registry_helper_spec.rb
@@ -31,8 +31,11 @@ describe Chef::Resource::RegistryKey, :windows_only do
events = Chef::EventDispatch::Dispatcher.new
node = Chef::Node.new
+
ohai = Ohai::System.new
- ohai.all_plugins
+ filter = Chef::Config[:minimal_ohai] ? %w{fqdn machinename hostname platform platform_version os os_version} : nil
+ ohai.all_plugins(filter)
+
node.consume_external_attrs(ohai.data,{})
run_context = Chef::RunContext.new(node, {}, events)
@resource = Chef::Resource.new("foo", run_context)