summaryrefslogtreecommitdiff
path: root/spec/unit/node
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/unit/node
parent61e98b94fb387353841d5b4575816a1d716cfbc9 (diff)
downloadchef-6315871ae7deeead95d84d2487c54a03c47e318f.tar.gz
Normalize whitespace on all files
Diffstat (limited to 'spec/unit/node')
-rw-r--r--spec/unit/node/attribute_spec.rb22
-rw-r--r--spec/unit/node/immutable_collections_spec.rb4
2 files changed, 13 insertions, 13 deletions
diff --git a/spec/unit/node/attribute_spec.rb b/spec/unit/node/attribute_spec.rb
index 5aa563aedf..70905d334b 100644
--- a/spec/unit/node/attribute_spec.rb
+++ b/spec/unit/node/attribute_spec.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.
@@ -20,9 +20,9 @@
require 'spec_helper'
require 'chef/node/attribute'
-describe Chef::Node::Attribute do
+describe Chef::Node::Attribute do
before(:each) do
- @attribute_hash =
+ @attribute_hash =
{"dmi"=>{},
"command"=>{"ps"=>"ps -ef"},
"platform_version"=>"10.5.7",
@@ -193,7 +193,7 @@ describe Chef::Node::Attribute do
@default_hash = {
"domain" => "opscode.com",
"hot" => { "day" => "saturday" },
- "music" => {
+ "music" => {
"jimmy_eat_world" => "is fun!",
"mastodon" => "rocks",
"mars_volta" => "is loud and nutty",
@@ -225,7 +225,7 @@ describe Chef::Node::Attribute do
[ :normal, :default, :override, :automatic ].each do |accessor|
it "should set #{accessor}" do
na = Chef::Node::Attribute.new({ :normal => true }, { :default => true }, { :override => true }, { :automatic => true })
- na.send(accessor).should == { accessor.to_s => true }
+ na.send(accessor).should == { accessor.to_s => true }
end
end
@@ -520,7 +520,7 @@ describe Chef::Node::Attribute do
[:include?, :key?, :member?].each do |method|
it "should alias the method #{method} to itself" do
- @attributes.should respond_to(method)
+ @attributes.should respond_to(method)
end
it "#{method} should behave like has_key?" do
@@ -582,7 +582,7 @@ describe Chef::Node::Attribute do
collect.include?("snakes").should == true
collect.include?("snack").should == true
collect.include?("place").should == true
- collect.length.should == 5
+ collect.length.should == 5
end
it "should yield lower if we go deeper" do
@@ -593,7 +593,7 @@ describe Chef::Node::Attribute do
collect.include?("two").should == true
collect.include?("four").should == true
collect.include?("six").should == true
- collect.length.should == 3
+ collect.length.should == 3
end
it "should not raise an exception if one of the hashes has a nil value on a deep lookup" do
@@ -667,7 +667,7 @@ describe Chef::Node::Attribute do
@attributes.each_key do |k|
collect << k
end
-
+
collect.should include("one")
collect.should include("snack")
collect.should include("hut")
@@ -710,7 +710,7 @@ describe Chef::Node::Attribute do
collect["snack"].should == "cookies"
end
end
-
+
describe "each_value" do
before do
@attributes = Chef::Node::Attribute.new(
diff --git a/spec/unit/node/immutable_collections_spec.rb b/spec/unit/node/immutable_collections_spec.rb
index db4a79f21b..0c2b878cd2 100644
--- a/spec/unit/node/immutable_collections_spec.rb
+++ b/spec/unit/node/immutable_collections_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.