spec/unit/plugins/chef_spec.rb in ohai-15.2.5 vs spec/unit/plugins/chef_spec.rb in ohai-15.3.1
- old
+ new
@@ -21,14 +21,14 @@
begin
require "spec_helper"
require "chef/version"
describe Ohai::System, "plugin chef" do
- before(:each) do
+ before do
@plugin = get_plugin("chef")
end
- it "should set [:chef_packages][:chef][:version] to the current chef version", if: defined?(Chef) do
+ it "sets [:chef_packages][:chef][:version] to the current chef version", if: defined?(Chef) do
@plugin.run
expect(@plugin[:chef_packages][:chef][:version]).to eq(Chef::VERSION)
end
pending "would set [:chef_packages][:chef][:version] if chef was available", unless: defined?(Chef)