summaryrefslogtreecommitdiff
path: root/spec/functional/resource/batch_spec.rb
diff options
context:
space:
mode:
authorAdam Edwards <adamed@opscode.com>2014-06-14 20:59:44 -0700
committerAdam Edwards <adamed@opscode.com>2014-10-23 10:43:03 -0700
commitb070d4796bb9b573c22ec6e094fea7e60d323718 (patch)
treedf9296d8ffbb5a72aa4139c957e90d3ae0c42bab /spec/functional/resource/batch_spec.rb
parent94dc0364dfa99dba3a5dbfbefeb08f41926b5468 (diff)
downloadchef-b070d4796bb9b573c22ec6e094fea7e60d323718.tar.gz
powershell_script and batch resource guard_interpeter default to parent resource
Diffstat (limited to 'spec/functional/resource/batch_spec.rb')
-rw-r--r--spec/functional/resource/batch_spec.rb15
1 files changed, 4 insertions, 11 deletions
diff --git a/spec/functional/resource/batch_spec.rb b/spec/functional/resource/batch_spec.rb
index baa01ee5d9..39133fd40b 100644
--- a/spec/functional/resource/batch_spec.rb
+++ b/spec/functional/resource/batch_spec.rb
@@ -21,17 +21,10 @@ require 'spec_helper'
describe Chef::Resource::WindowsScript::Batch, :windows_only do
include_context Chef::Resource::WindowsScript
- let(:script_content) { "whoami" }
+ let(:output_command) { ' > ' }
- let!(:resource) do
- Chef::Resource::WindowsScript::Batch.new("Batch resource functional test", @run_context)
- end
+ let (:architecture_command) { '@echo %PROCESSOR_ARCHITECTURE%' }
+
+ it_behaves_like "a Windows script running on Windows"
- describe "when the run action is invoked on Windows" do
- it "executes the script code" do
- resource.code(script_content + " > #{script_output_path}")
- resource.returns(0)
- resource.run_action(:run)
- end
- end
end