diff options
author | Peter Souter <p.souter@kainos.com> | 2014-12-04 14:27:55 +0000 |
---|---|---|
committer | Peter Souter <p.souter@kainos.com> | 2014-12-04 14:27:55 +0000 |
commit | 368c97f08046696d453afca6e1f8001b5bfc88a5 (patch) | |
tree | 4d055e951c5b592b87aeaa76f782e49ff4950d1e | |
parent | 7a1c4a6d9e4123a59fa85be18bd1b86ed5539b56 (diff) |
(MODULES-444) - Check for accepting > 2 args
-rwxr-xr-x | spec/functions/concat_spec.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/functions/concat_spec.rb b/spec/functions/concat_spec.rb index d443c4b..49fa6bb 100755 --- a/spec/functions/concat_spec.rb +++ b/spec/functions/concat_spec.rb @@ -13,6 +13,10 @@ describe "the concat function" do expect { scope.function_concat([1, []])}.to(raise_error(Puppet::ParseError)) end + it "should not raise a ParseError if the client provides more than two arguments" do + expect { scope.function_concat([[1],[2],[3]]) }.not_to raise_error + end + it "should be able to concat an array" do result = scope.function_concat([['1','2','3'],['4','5','6']]) expect(result).to(eq(['1','2','3','4','5','6'])) |