diff options
author | Jay Mundrawala <jdmundrawala@gmail.com> | 2016-02-01 15:24:27 -0800 |
---|---|---|
committer | Jay Mundrawala <jdmundrawala@gmail.com> | 2016-02-01 15:24:27 -0800 |
commit | 8fb78558bedcc782bca5972f7e5b1c8ebfb6a0c6 (patch) | |
tree | ae6f7386582c29bcbbc66b58c648b52e27f6d24f | |
parent | a96e0c9c458bf987e409a5ba30853fc0244ec9f9 (diff) | |
download | chef-jdm/reg-unit-speed.tar.gz |
Don't rerun ohai for unit/regsitry_helper_specjdm/reg-unit-speed
Ohai is slow. We don't need to rerun this, it's
already run in our spec_helper.
-rw-r--r-- | spec/unit/dsl/regsitry_helper_spec.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/spec/unit/dsl/regsitry_helper_spec.rb b/spec/unit/dsl/regsitry_helper_spec.rb index 8647b79020..d8b5d5670b 100644 --- a/spec/unit/dsl/regsitry_helper_spec.rb +++ b/spec/unit/dsl/regsitry_helper_spec.rb @@ -24,9 +24,7 @@ describe Chef::Resource::RegistryKey do before (:all) do 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) @resource = Chef::Resource::new("foo", run_context) end |