summaryrefslogtreecommitdiff
path: root/spec/unit/resource/execute_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/unit/resource/execute_spec.rb')
-rw-r--r--spec/unit/resource/execute_spec.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/unit/resource/execute_spec.rb b/spec/unit/resource/execute_spec.rb
index c99e87b351..c351b8e357 100644
--- a/spec/unit/resource/execute_spec.rb
+++ b/spec/unit/resource/execute_spec.rb
@@ -24,6 +24,14 @@ describe Chef::Resource::Execute do
let(:execute_resource) { Chef::Resource::Execute.new(resource_instance_name) }
it_behaves_like "an execute resource"
+ it "sets the default action as :run" do
+ expect(execute_resource.action).to eql([:run])
+ end
+
+ it "supports :run action" do
+ expect { execute_resource.action :run }.not_to raise_error
+ end
+
it "default guard interpreter is :execute interpreter" do
expect(execute_resource.guard_interpreter).to be(:execute)
end