summaryrefslogtreecommitdiff
path: root/spec/functional/resource/batch_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/functional/resource/batch_spec.rb')
-rw-r--r--spec/functional/resource/batch_spec.rb16
1 files changed, 8 insertions, 8 deletions
diff --git a/spec/functional/resource/batch_spec.rb b/spec/functional/resource/batch_spec.rb
index 7f7125a91e..818cc7a0f4 100644
--- a/spec/functional/resource/batch_spec.rb
+++ b/spec/functional/resource/batch_spec.rb
@@ -6,9 +6,9 @@
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
-#
+#
# http://www.apache.org/licenses/LICENSE-2.0
-#
+#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -22,14 +22,14 @@ shared_context Chef::Resource::WindowsScript do
before(:all) do
ohai_reader = Ohai::System.new
- ohai_reader.require_plugin("os")
+ ohai_reader.require_plugin("os")
ohai_reader.require_plugin("windows::platform")
new_node = Chef::Node.new
new_node.consume_external_attrs(ohai_reader.data,{})
-
+
events = Chef::EventDispatch::Dispatcher.new
-
+
@run_context = Chef::RunContext.new(new_node, {}, events)
end
@@ -38,7 +38,7 @@ shared_context Chef::Resource::WindowsScript do
end
before(:each) do
-k File.delete(script_output_path) if File.exists?(script_output_path)
+k File.delete(script_output_path) if File.exists?(script_output_path)
end
after(:each) do
@@ -54,11 +54,11 @@ describe Chef::Resource::WindowsScript::Batch, :windows_only do
end
context "when the run action is invoked on Windows" do
- include_context Chef::Resource::WindowsScript
+ include_context Chef::Resource::WindowsScript
it "executes the script code" do
resource.code(script_content + " > #{script_output_path}")
resource.returns(0)
resource.run_action(:run)
end
- end
+ end
end