From 7a1c4a6d9e4123a59fa85be18bd1b86ed5539b56 Mon Sep 17 00:00:00 2001
From: Peter Souter
Date: Thu, 4 Dec 2014 14:27:38 +0000
Subject: (MODULES-444) Change test to > 2 arguments
Also add extra test for just 1 argument
---
spec/functions/concat_spec.rb | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
(limited to 'spec/functions')
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
--
cgit v1.2.3