summaryrefslogtreecommitdiff
path: root/spec/unit/resource/execute_spec.rb
diff options
context:
space:
mode:
authorSerdar Sutay <serdar@opscode.com>2014-10-13 15:57:56 -0700
committerSerdar Sutay <serdar@opscode.com>2014-10-16 13:30:23 -0700
commit8dd586b1fdbb13705a1a3a5f7f792568cc39e434 (patch)
tree19ac34de330ce11140655c6394f2d1a1604322bc /spec/unit/resource/execute_spec.rb
parent28fd0c9c87c6fceb7068776a04c32cd8381fe8f6 (diff)
downloadchef-8dd586b1fdbb13705a1a3a5f7f792568cc39e434.tar.gz
Enable guard_interpreters for the execute resource and set the default interpreter for the execute resource to be :execute.
This ensures that attributes of the resource like :environment & :cwd can be inherited by the guard when guard is specified as a string.
Diffstat (limited to 'spec/unit/resource/execute_spec.rb')
-rw-r--r--spec/unit/resource/execute_spec.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/unit/resource/execute_spec.rb b/spec/unit/resource/execute_spec.rb
index 8c8dcfb6ca..e1728b7892 100644
--- a/spec/unit/resource/execute_spec.rb
+++ b/spec/unit/resource/execute_spec.rb
@@ -23,4 +23,9 @@ describe Chef::Resource::Execute do
let(:resource_instance_name) { "some command" }
let(:execute_resource) { Chef::Resource::Execute.new(resource_instance_name) }
it_behaves_like "an execute resource"
+
+ it "default guard interpreter should be :execute interpreter" do
+ execute_resource.guard_interpreter.should be(:execute)
+ end
+
end