spec/unit/plugins/chef_spec.rb in ohai-14.2.0 vs spec/unit/plugins/chef_spec.rb in ohai-14.3.0
- old
+ new
@@ -25,20 +25,20 @@
describe Ohai::System, "plugin chef" do
before(:each) do
@plugin = get_plugin("chef")
end
- it "should set [:chef_packages][:chef][:version] to the current chef version", :if => defined?(Chef) do
+ it "should set [: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)
+ pending "would set [:chef_packages][:chef][:version] if chef was available", unless: defined?(Chef)
end
rescue LoadError
# the chef module is not available, ignoring.
describe Ohai::System, "plugin chef" do
- pending "would set [:chef_packages][:chef][:version] if chef was available", :unless => defined?(Chef)
+ pending "would set [:chef_packages][:chef][:version] if chef was available", unless: defined?(Chef)
end
end