diff options
author | Seth Vargo <sethvargo@gmail.com> | 2013-09-24 17:38:44 -0400 |
---|---|---|
committer | Bryan McLellan <btm@opscode.com> | 2013-09-26 11:13:59 -0700 |
commit | 6315871ae7deeead95d84d2487c54a03c47e318f (patch) | |
tree | a2bf980c434c657aa350c0d3fc4073652cdf43cf /spec/functional/resource/batch_spec.rb | |
parent | 61e98b94fb387353841d5b4575816a1d716cfbc9 (diff) | |
download | chef-6315871ae7deeead95d84d2487c54a03c47e318f.tar.gz |
Normalize whitespace on all files
Diffstat (limited to 'spec/functional/resource/batch_spec.rb')
-rw-r--r-- | spec/functional/resource/batch_spec.rb | 16 |
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 |