summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorSharif Nassar <sharif@mediatemple.net>2014-02-05 15:01:45 -0800
committerSharif Nassar <sharif@mediatemple.net>2014-02-05 15:01:45 -0800
commita972e0645b31cf1eb89874cb08b403bdc0fad3a4 (patch)
treeb0287e655c51232037602dcd112d3a4a8a53906c /spec
parent5b85e7c39f34b3004881517f886d7f06f8f2a440 (diff)
Remove trailing whitespace
Diffstat (limited to 'spec')
-rwxr-xr-xspec/unit/puppet/parser/functions/delete_at_spec.rb4
-rwxr-xr-xspec/unit/puppet/parser/functions/delete_spec.rb6
-rw-r--r--spec/unit/puppet/parser/functions/delete_undef_values_spec.rb10
-rw-r--r--spec/unit/puppet/parser/functions/delete_values_spec.rb6
-rw-r--r--spec/unit/puppet/parser/functions/str2bool_spec.rb2
5 files changed, 14 insertions, 14 deletions
diff --git a/spec/unit/puppet/parser/functions/delete_at_spec.rb b/spec/unit/puppet/parser/functions/delete_at_spec.rb
index cfc0a29..593cf45 100755
--- a/spec/unit/puppet/parser/functions/delete_at_spec.rb
+++ b/spec/unit/puppet/parser/functions/delete_at_spec.rb
@@ -17,9 +17,9 @@ describe "the delete_at function" do
result.should(eq(['a','c']))
end
- it "should not change origin array passed as argument" do
+ it "should not change origin array passed as argument" do
origin_array = ['a','b','c','d']
result = scope.function_delete_at([origin_array, 1])
origin_array.should(eq(['a','b','c','d']))
- end
+ end
end
diff --git a/spec/unit/puppet/parser/functions/delete_spec.rb b/spec/unit/puppet/parser/functions/delete_spec.rb
index 06238f1..1508a63 100755
--- a/spec/unit/puppet/parser/functions/delete_spec.rb
+++ b/spec/unit/puppet/parser/functions/delete_spec.rb
@@ -35,7 +35,7 @@ describe "the delete function" do
result.should(eq({ 'a' => 1, 'c' => 3 }))
end
- it "should not change origin array passed as argument" do
+ it "should not change origin array passed as argument" do
origin_array = ['a','b','c','d']
result = scope.function_delete([origin_array, 'b'])
origin_array.should(eq(['a','b','c','d']))
@@ -47,8 +47,8 @@ describe "the delete function" do
origin_string.should(eq('foobarbabarz'))
end
- it "should not change origin hash passed as argument" do
- origin_hash = { 'a' => 1, 'b' => 2, 'c' => 3 }
+ it "should not change origin hash passed as argument" do
+ origin_hash = { 'a' => 1, 'b' => 2, 'c' => 3 }
result = scope.function_delete([origin_hash, 'b'])
origin_hash.should(eq({ 'a' => 1, 'b' => 2, 'c' => 3 }))
end
diff --git a/spec/unit/puppet/parser/functions/delete_undef_values_spec.rb b/spec/unit/puppet/parser/functions/delete_undef_values_spec.rb
index 404aeda..b341d88 100644
--- a/spec/unit/puppet/parser/functions/delete_undef_values_spec.rb
+++ b/spec/unit/puppet/parser/functions/delete_undef_values_spec.rb
@@ -27,15 +27,15 @@ describe "the delete_undef_values function" do
result.should(eq({'a'=>'A','c'=>'C','d'=>'undef'}))
end
- it "should not change origin array passed as argument" do
+ it "should not change origin array passed as argument" do
origin_array = ['a',:undef,'c','undef']
result = scope.function_delete_undef_values([origin_array])
origin_array.should(eq(['a',:undef,'c','undef']))
- end
+ end
- it "should not change origin hash passed as argument" do
- origin_hash = { 'a' => 1, 'b' => :undef, 'c' => 'undef' }
+ it "should not change origin hash passed as argument" do
+ origin_hash = { 'a' => 1, 'b' => :undef, 'c' => 'undef' }
result = scope.function_delete_undef_values([origin_hash])
origin_hash.should(eq({ 'a' => 1, 'b' => :undef, 'c' => 'undef' }))
- end
+ end
end
diff --git a/spec/unit/puppet/parser/functions/delete_values_spec.rb b/spec/unit/puppet/parser/functions/delete_values_spec.rb
index 180cc30..8d7f231 100644
--- a/spec/unit/puppet/parser/functions/delete_values_spec.rb
+++ b/spec/unit/puppet/parser/functions/delete_values_spec.rb
@@ -27,10 +27,10 @@ describe "the delete_values function" do
result.should(eq({ 'a'=>'A', 'B'=>'C' }))
end
- it "should not change origin hash passed as argument" do
- origin_hash = { 'a' => 1, 'b' => 2, 'c' => 3 }
+ it "should not change origin hash passed as argument" do
+ origin_hash = { 'a' => 1, 'b' => 2, 'c' => 3 }
result = scope.function_delete_values([origin_hash, 2])
origin_hash.should(eq({ 'a' => 1, 'b' => 2, 'c' => 3 }))
- end
+ end
end
diff --git a/spec/unit/puppet/parser/functions/str2bool_spec.rb b/spec/unit/puppet/parser/functions/str2bool_spec.rb
index ef6350f..73c09c7 100644
--- a/spec/unit/puppet/parser/functions/str2bool_spec.rb
+++ b/spec/unit/puppet/parser/functions/str2bool_spec.rb
@@ -21,7 +21,7 @@ describe "the str2bool function" do
result = scope.function_str2bool(["undef"])
result.should(eq(false))
end
-
+
it "should return the boolean it was called with" do
result = scope.function_str2bool([true])
result.should(eq(true))