summaryrefslogtreecommitdiff
path: root/spec/acceptance/union_spec.rb
diff options
context:
space:
mode:
authorDavid Schmitt <david.schmitt@puppetlabs.com>2015-08-24 14:36:20 +0100
committerDavid Schmitt <david.schmitt@puppetlabs.com>2015-08-24 14:36:20 +0100
commit24e57b5d2849982d5a927f43d698ff7f312ab93a (patch)
tree315a8a912f1bd8d17530b84bdb923b45596cae3d /spec/acceptance/union_spec.rb
parent1d89df906e1ae1d09a862974181663caaf8012c6 (diff)
parent1d9189d860f28067b72093cbe4027cf49b7d612c (diff)
downloadpuppet-stdlib-24e57b5d2849982d5a927f43d698ff7f312ab93a.tar.gz
puppet-stdlib-24e57b5d2849982d5a927f43d698ff7f312ab93a.tar.bz2
Merge pull request #507 from Jetroid/mod2456
(MODULES-2456) Modify union to accept more than two arrays
Diffstat (limited to 'spec/acceptance/union_spec.rb')
-rwxr-xr-xspec/acceptance/union_spec.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/spec/acceptance/union_spec.rb b/spec/acceptance/union_spec.rb
index 6db8d0c..160fd7b 100755
--- a/spec/acceptance/union_spec.rb
+++ b/spec/acceptance/union_spec.rb
@@ -6,9 +6,10 @@ describe 'union function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('opera
it 'unions arrays' do
pp = <<-EOS
$a = ["the","public"]
- $b = ["art","galleries"]
+ $b = ["art"]
+ $c = ["galleries"]
# Anagram: Large picture halls, I bet
- $o = union($a,$b)
+ $o = union($a,$b,$c)
notice(inline_template('union is <%= @o.inspect %>'))
EOS