]> gitweb.fluxo.info Git - puppet-stdlib.git/commitdiff
(MODULES-444) - Check for accepting > 2 args
authorPeter Souter <p.souter@kainos.com>
Thu, 4 Dec 2014 14:27:55 +0000 (14:27 +0000)
committerPeter Souter <p.souter@kainos.com>
Thu, 4 Dec 2014 14:27:55 +0000 (14:27 +0000)
spec/functions/concat_spec.rb

index d443c4bf77b7a1a6d0a796bc1c46f7c17ff61ebf..49fa6bb3640a025cc508b8f0cb79ffd6ccc5852d 100755 (executable)
@@ -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']))