Skip to content

Commit 7a1c4a6

Browse files
author
Peter Souter
committed
(MODULES-444) Change test to > 2 arguments
Also add extra test for just 1 argument
1 parent 5e49c50 commit 7a1c4a6

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

spec/functions/concat_spec.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
44
describe "the concat function" do
55
let(:scope) { PuppetlabsSpec::PuppetInternals.scope }
66

7-
it "should raise a ParseError if the client does not provide two arguments" do
7+
it "should raise a ParseError if the client does not provide at least two arguments" do
88
expect { scope.function_concat([]) }.to(raise_error(Puppet::ParseError))
9+
expect { scope.function_concat([[1]]) }.to(raise_error(Puppet::ParseError))
910
end
1011

1112
it "should raise a ParseError if the first parameter is not an array" do

0 commit comments

Comments
 (0)