diff options
Diffstat (limited to 'spec/functional/resource/ohai_spec.rb')
-rw-r--r-- | spec/functional/resource/ohai_spec.rb | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/spec/functional/resource/ohai_spec.rb b/spec/functional/resource/ohai_spec.rb index 8b93f22613..d27233baaa 100644 --- a/spec/functional/resource/ohai_spec.rb +++ b/spec/functional/resource/ohai_spec.rb @@ -19,9 +19,12 @@ require "spec_helper" describe Chef::Resource::Ohai do - let(:ohai) { + let!(:ohai) { o = Ohai::System.new - o.all_plugins + + filter = Chef::Config[:minimal_ohai] ? %w{fqdn machinename hostname platform platform_version os os_version} : nil + o.all_plugins(filter) + o } |