summaryrefslogtreecommitdiff
path: root/spec/functions/concat_spec.rb
diff options
context:
space:
mode:
authorHunter Haugen <hunter@puppetlabs.com>2016-04-11 15:02:58 -0700
committerHunter Haugen <hunter@puppetlabs.com>2016-04-11 15:02:58 -0700
commite3a6e2c601416ed7c656ccaf75eaec967f4eb687 (patch)
tree44f7aeb8e5288e65d6afe1185a0e9e55533c7e91 /spec/functions/concat_spec.rb
parent60864fd39bcb22886749fc6d0a54eb09f8048516 (diff)
parent44596e73da1b157ea931d5111f842e108ca203bb (diff)
Merge pull request #590 from alext/fix_concat_with_hash
(MODULES-3246) Fix concat with Hash arguments.
Diffstat (limited to 'spec/functions/concat_spec.rb')
-rwxr-xr-xspec/functions/concat_spec.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/functions/concat_spec.rb b/spec/functions/concat_spec.rb
index 1694d5e..eb76233 100755
--- a/spec/functions/concat_spec.rb
+++ b/spec/functions/concat_spec.rb
@@ -11,6 +11,7 @@ describe 'concat' do
it { is_expected.to run.with_params(['1','2','3'],[['4','5'],'6']).and_return(['1','2','3',['4','5'],'6']) }
it { is_expected.to run.with_params(['1','2'],['3','4'],['5','6']).and_return(['1','2','3','4','5','6']) }
it { is_expected.to run.with_params(['1','2'],'3','4',['5','6']).and_return(['1','2','3','4','5','6']) }
+ it { is_expected.to run.with_params([{"a" => "b"}], {"c" => "d", "e" => "f"}).and_return([{"a" => "b"}, {"c" => "d", "e" => "f"}]) }
it "should leave the original array intact" do
argument1 = ['1','2','3']