Skip to content

Commit

Permalink
(MODULES-444) - Check for accepting > 2 args
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Souter committed Dec 4, 2014
1 parent 7a1c4a6 commit 368c97f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions spec/functions/concat_spec.rb
Expand Up @@ -13,6 +13,10 @@
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']))
Expand Down

0 comments on commit 368c97f

Please sign in to comment.