summaryrefslogtreecommitdiff
path: root/spec/functions
diff options
context:
space:
mode:
authorAshley Penney <ashley.penney@puppetlabs.com>2014-07-31 15:01:20 -0400
committerAshley Penney <ashley.penney@puppetlabs.com>2014-07-31 15:01:20 -0400
commite310b1fdab7be1478b464167d2be20f0d4e5f63a (patch)
tree54a0ec7647debbf3176e5e71d66257f223a47330 /spec/functions
parentc5f6c26d67a4f3777cec4af1a3850a6a5a2ccbc1 (diff)
parenta6ad0af08e408adbb4b25684b18feb8aee12cf3e (diff)
downloadpuppet-stdlib-e310b1fdab7be1478b464167d2be20f0d4e5f63a.tar.gz
puppet-stdlib-e310b1fdab7be1478b464167d2be20f0d4e5f63a.tar.bz2
Merge pull request #306 from hunner/fix_concat
(MODULES-1195) Rebase of #202
Diffstat (limited to 'spec/functions')
-rwxr-xr-xspec/functions/concat_spec.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/functions/concat_spec.rb b/spec/functions/concat_spec.rb
index b853b4c..49cb2ad 100755
--- a/spec/functions/concat_spec.rb
+++ b/spec/functions/concat_spec.rb
@@ -27,4 +27,9 @@ describe "the concat function" do
expect(result).to(eq(['1','2','3',['4','5'],'6']))
end
+ it "should leave the original array intact" do
+ array_original = ['1','2','3']
+ result = scope.function_concat([array_original,['4','5','6']])
+ array_original.should(eq(['1','2','3']))
+ end
end