summaryrefslogtreecommitdiff
path: root/spec/functions/concat_spec.rb
diff options
context:
space:
mode:
authorPeter Souter <p.souter@kainos.com>2014-12-04 14:27:38 +0000
committerPeter Souter <p.souter@kainos.com>2014-12-04 14:27:38 +0000
commit7a1c4a6d9e4123a59fa85be18bd1b86ed5539b56 (patch)
tree491b15bff048114117144c7eaa694bd0643ff431 /spec/functions/concat_spec.rb
parent5e49c504580bf06353c841c51f1319a5bda893a8 (diff)
downloadpuppet-stdlib-7a1c4a6d9e4123a59fa85be18bd1b86ed5539b56.tar.gz
puppet-stdlib-7a1c4a6d9e4123a59fa85be18bd1b86ed5539b56.tar.bz2
(MODULES-444) Change test to > 2 arguments
Also add extra test for just 1 argument
Diffstat (limited to 'spec/functions/concat_spec.rb')
-rwxr-xr-xspec/functions/concat_spec.rb3
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