diff options
author | Peter Souter <p.souter@kainos.com> | 2014-12-04 14:27:38 +0000 |
---|---|---|
committer | Peter Souter <p.souter@kainos.com> | 2014-12-04 14:27:38 +0000 |
commit | 7a1c4a6d9e4123a59fa85be18bd1b86ed5539b56 (patch) | |
tree | 491b15bff048114117144c7eaa694bd0643ff431 /spec | |
parent | 5e49c504580bf06353c841c51f1319a5bda893a8 (diff) |
(MODULES-444) Change test to > 2 arguments
Also add extra test for just 1 argument
Diffstat (limited to 'spec')
-rwxr-xr-x | spec/functions/concat_spec.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/functions/concat_spec.rb b/spec/functions/concat_spec.rb index 4a18cd9..d443c4b 100755 --- a/spec/functions/concat_spec.rb +++ b/spec/functions/concat_spec.rb @@ -4,8 +4,9 @@ require 'spec_helper' 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 |