Skip to content

Commit

Permalink
(MODULES-444) Change test to > 2 arguments
Browse files Browse the repository at this point in the history
Also add extra test for just 1 argument
  • Loading branch information
Peter Souter committed Dec 4, 2014
1 parent 5e49c50 commit 7a1c4a6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion spec/functions/concat_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@
describe "the concat function" do
let(:scope) { PuppetlabsSpec::PuppetInternals.scope }

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

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

0 comments on commit 7a1c4a6

Please sign in to comment.