diff options
author | danielsdeleo <dan@opscode.com> | 2012-11-05 13:47:38 -0800 |
---|---|---|
committer | danielsdeleo <dan@opscode.com> | 2012-11-05 14:34:06 -0800 |
commit | a3de38200301f510eeb1d6628539e9110213f8ea (patch) | |
tree | d931c59c572c762b1ef611b515d771cbc4e1d462 /spec | |
parent | 8a0edf28bfef4d52a439e0f49c2b698749be7d40 (diff) | |
download | chef-a3de38200301f510eeb1d6628539e9110213f8ea.tar.gz |
[OC-4668] move ohai into before(:all) in deploy_rev test
Diffstat (limited to 'spec')
-rw-r--r-- | spec/functional/resource/deploy_revision_spec.rb | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/spec/functional/resource/deploy_revision_spec.rb b/spec/functional/resource/deploy_revision_spec.rb index 3bf4a86c5c..a9d5b4800e 100644 --- a/spec/functional/resource/deploy_revision_spec.rb +++ b/spec/functional/resource/deploy_revision_spec.rb @@ -42,14 +42,16 @@ describe Chef::Resource::DeployRevision, :unix_only => true do FileUtils.remove_entry_secure observe_order_file end - ohai = Ohai::System.new - ohai.require_plugin("os") + before(:all) do + @ohai = Ohai::System.new + @ohai.require_plugin("os") + end let(:node) do Chef::Node.new.tap do |n| n.name "rspec-test" - n.consume_external_attrs(ohai.data, {}) + n.consume_external_attrs(@ohai.data, {}) end end |