Skip to content

Commit 368c97f

Browse files
author
Peter Souter
committed
(MODULES-444) - Check for accepting > 2 args
1 parent 7a1c4a6 commit 368c97f

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

spec/functions/concat_spec.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@
1313
expect { scope.function_concat([1, []])}.to(raise_error(Puppet::ParseError))
1414
end
1515

16+
it "should not raise a ParseError if the client provides more than two arguments" do
17+
expect { scope.function_concat([[1],[2],[3]]) }.not_to raise_error
18+
end
19+
1620
it "should be able to concat an array" do
1721
result = scope.function_concat([['1','2','3'],['4','5','6']])
1822
expect(result).to(eq(['1','2','3','4','5','6']))

0 commit comments

Comments
 (0)