summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordanielsdeleo <dan@opscode.com>2013-07-15 12:49:18 -0700
committeradamedx <adamed@opscode.com>2013-08-19 11:51:16 -0700
commit4921379e765cb7152fa06fd4f5aff47fa9ed9158 (patch)
tree198f85dc898da622611ade935d0a91abfd4b4c5d
parentfa99426b2ef9ba5e252b8aa5900267e2d118718d (diff)
downloadohai-4921379e765cb7152fa06fd4f5aff47fa9ed9158.tar.gz
update chef plugin tests for system/plugin split
Appears to have been broken in rebase
-rw-r--r--spec/unit/plugins/chef_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/unit/plugins/chef_spec.rb b/spec/unit/plugins/chef_spec.rb
index 716876b9..1f402e6f 100644
--- a/spec/unit/plugins/chef_spec.rb
+++ b/spec/unit/plugins/chef_spec.rb
@@ -30,8 +30,8 @@ begin
end
it "should set [:chef_packages][:chef][:version] to the current chef version", :if => defined?(Chef) do
- @ohai._require_plugin("chef")
- @ohai[:chef_packages][:chef][:version].should == Chef::VERSION
+ @plugin.run
+ @plugin[:chef_packages][:chef][:version].should == Chef::VERSION
end
pending "would set [:chef_packages][:chef][:version] if chef was available", :unless => defined?(Chef)