summaryrefslogtreecommitdiff
path: root/spec/unit/resource/python_spec.rb
diff options
context:
space:
mode:
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