summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorAdam Leff <adam@leff.co>2016-12-02 15:07:55 -0500
committerAdam Leff <adam@leff.co>2016-12-02 15:10:20 -0500
commitb3d2b5b6ee62045d391a99752b9b038b01627e91 (patch)
tree9d2e771a35d56c8c2b9fe6531e2905319b8d0320 /spec
parent88269ebd629775c625b121709991ebc76d9c0fa4 (diff)
downloadchef-b3d2b5b6ee62045d391a99752b9b038b01627e91.tar.gz
Update ohai resource to new style, stop overwriting name propertyadamleff/update-ohai-resource
If #5606 is approved, any resource that creates a property that is an already-existing Ruby method on a Chef::Resource object will throw a deprecation warning. The ohai resource currently creates a `name` property which conflicts with the `name` property created in the base Chef::Resource class. This change updates the ohai resource and provider to the new style of defining resources and stops overwriting the `name` method. Signed-off-by: Adam Leff <adam@leff.co>
Diffstat (limited to 'spec')
-rw-r--r--spec/unit/resource/ohai_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/unit/resource/ohai_spec.rb b/spec/unit/resource/ohai_spec.rb
index 9669ef193d..cf1748002b 100644
--- a/spec/unit/resource/ohai_spec.rb
+++ b/spec/unit/resource/ohai_spec.rb
@@ -33,7 +33,7 @@ describe Chef::Resource::Ohai do
expect(@resource.resource_name).to eql(:ohai)
end
- it "should have a default action of create" do
+ it "should have a default action of reload" do
expect(@resource.action).to eql([:reload])
end