summaryrefslogtreecommitdiff
path: root/spec/support
diff options
context:
space:
mode:
authorSeth Vargo <sethvargo@gmail.com>2013-09-24 17:38:44 -0400
committerBryan McLellan <btm@opscode.com>2013-09-26 11:13:59 -0700
commit6315871ae7deeead95d84d2487c54a03c47e318f (patch)
treea2bf980c434c657aa350c0d3fc4073652cdf43cf /spec/support
parent61e98b94fb387353841d5b4575816a1d716cfbc9 (diff)
downloadchef-6315871ae7deeead95d84d2487c54a03c47e318f.tar.gz
Normalize whitespace on all files
Diffstat (limited to 'spec/support')
-rw-r--r--spec/support/lib/chef/provider/easy.rb8
-rw-r--r--spec/support/lib/chef/provider/snakeoil.rb8
-rw-r--r--spec/support/lib/chef/resource/cat.rb10
-rw-r--r--spec/support/shared/unit/script_resource.rb14
-rw-r--r--spec/support/shared/unit/windows_script_resource.rb14
5 files changed, 27 insertions, 27 deletions
diff --git a/spec/support/lib/chef/provider/easy.rb b/spec/support/lib/chef/provider/easy.rb
index 054b45256c..a4d285a838 100644
--- a/spec/support/lib/chef/provider/easy.rb
+++ b/spec/support/lib/chef/provider/easy.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,11 +22,11 @@ class Chef
def load_current_resource
true
end
-
+
def action_sell
true
end
-
+
def action_buy
true
end
diff --git a/spec/support/lib/chef/provider/snakeoil.rb b/spec/support/lib/chef/provider/snakeoil.rb
index c5d8d52a82..e9d01f654f 100644
--- a/spec/support/lib/chef/provider/snakeoil.rb
+++ b/spec/support/lib/chef/provider/snakeoil.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,7 +22,7 @@ class Chef
def load_current_resource
true
end
-
+
def action_purr
@new_resource.updated_by_last_action(true)
true
@@ -31,7 +31,7 @@ class Chef
def action_sell
true
end
-
+
def action_buy
true
end
diff --git a/spec/support/lib/chef/resource/cat.rb b/spec/support/lib/chef/resource/cat.rb
index 83eb9f08a3..ecca50cb53 100644
--- a/spec/support/lib/chef/resource/cat.rb
+++ b/spec/support/lib/chef/resource/cat.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.
@@ -19,15 +19,15 @@
class Chef
class Resource
class Cat < Chef::Resource
-
+
attr_accessor :action
-
+
def initialize(name, run_context=nil)
@resource_name = :cat
super
@action = "sell"
end
-
+
def pretty_kitty(arg=nil)
if arg == true or arg == false
@pretty_kitty = arg
diff --git a/spec/support/shared/unit/script_resource.rb b/spec/support/shared/unit/script_resource.rb
index 0451f4694a..5f37506df6 100644
--- a/spec/support/shared/unit/script_resource.rb
+++ b/spec/support/shared/unit/script_resource.rb
@@ -7,9 +7,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.
@@ -23,26 +23,26 @@ shared_examples_for "a script resource" do
before(:each) do
@resource = script_resource
- end
+ end
it "should create a new Chef::Resource::Script" do
@resource.should be_a_kind_of(Chef::Resource)
@resource.should be_a_kind_of(Chef::Resource::Script)
end
-
+
it "should have a resource name of :script" do
@resource.resource_name.should eql(resource_name)
end
-
+
it "should set command to the argument provided to new" do
@resource.command.should eql(resource_instance_name)
end
-
+
it "should accept a string for the code" do
@resource.code "hey jude"
@resource.code.should eql("hey jude")
end
-
+
it "should accept a string for the flags" do
@resource.flags "-f"
@resource.flags.should eql("-f")
diff --git a/spec/support/shared/unit/windows_script_resource.rb b/spec/support/shared/unit/windows_script_resource.rb
index 0a0079a287..23dbfbe722 100644
--- a/spec/support/shared/unit/windows_script_resource.rb
+++ b/spec/support/shared/unit/windows_script_resource.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.
@@ -29,10 +29,10 @@ shared_examples_for "a Windows script resource" do
node.default["kernel"][:machine] = :x86_64.to_s
run_context = Chef::RunContext.new(node, nil, nil)
-
+
@resource = resource_instance
- end
+ end
it "should be a kind of Chef::Resource::WindowsScript" do
@resource.should be_a_kind_of(Chef::Resource)
@@ -40,9 +40,9 @@ shared_examples_for "a Windows script resource" do
end
context "script" do
- let(:script_resource) { resource_instance }
- it_should_behave_like "a script resource"
+ let(:script_resource) { resource_instance }
+ it_should_behave_like "a script resource"
end
-
+
end