summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordanielsdeleo <dan@opscode.com>2013-07-15 12:49:18 -0700
committerdanielsdeleo <dan@opscode.com>2013-07-15 12:49:18 -0700
commitb1169f4d9068b3c4a0857150f7f97d729430c959 (patch)
treef0f6f813cd42e79cb309cc615543c3566f2a9894
parentaa62eaa3b7d92faf25117c4b9aa63a2816c5d480 (diff)
downloadohai-b1169f4d9068b3c4a0857150f7f97d729430c959.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)