diff options
Diffstat (limited to 'spec/unit/dsl/regsitry_helper_spec.rb')
-rw-r--r-- | spec/unit/dsl/regsitry_helper_spec.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/spec/unit/dsl/regsitry_helper_spec.rb b/spec/unit/dsl/regsitry_helper_spec.rb index 8647b79020..69f782adc9 100644 --- a/spec/unit/dsl/regsitry_helper_spec.rb +++ b/spec/unit/dsl/regsitry_helper_spec.rb @@ -24,8 +24,11 @@ describe Chef::Resource::RegistryKey do before (:all) 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) @@ -52,4 +55,3 @@ describe Chef::Resource::RegistryKey do end end end - |