summaryrefslogtreecommitdiff
path: root/spec/unit/resource/python_spec.rb
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2018-05-16 12:48:05 -0700
committerTim Smith <tsmith@chef.io>2018-05-16 12:48:35 -0700
commitf3b34f2ad21934b060a95ac59f1573cea7217124 (patch)
tree266a6a950c7b2ef08bf93be4da41ab769267cd6f /spec/unit/resource/python_spec.rb
parentb69877bb0f1b2aec99f9c0a392d064e2b0d21bda (diff)
downloadchef-test_defaults.tar.gz
Add resource specs round 1test_defaults
Auto generated from the resource inspector Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'spec/unit/resource/python_spec.rb')
-rw-r--r--spec/unit/resource/python_spec.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/unit/resource/python_spec.rb b/spec/unit/resource/python_spec.rb
index 5a4dc8eca8..bc6af7be4d 100644
--- a/spec/unit/resource/python_spec.rb
+++ b/spec/unit/resource/python_spec.rb
@@ -29,4 +29,12 @@ describe Chef::Resource::Python do
it "has an interpreter of python" do
expect(resource.interpreter).to eql("python")
end
+
+ it "sets the default action as :run" do
+ expect(resource.action).to eql([:run])
+ end
+
+ it "supports :run actions" do
+ expect { resource.action :run }.not_to raise_error
+ end
end