]> gitweb.fluxo.info Git - puppet-stdlib.git/commitdiff
(MODULES-444) Change test to > 2 arguments
authorPeter Souter <p.souter@kainos.com>
Thu, 4 Dec 2014 14:27:38 +0000 (14:27 +0000)
committerPeter Souter <p.souter@kainos.com>
Thu, 4 Dec 2014 14:27:38 +0000 (14:27 +0000)
Also add extra test for just 1 argument

spec/functions/concat_spec.rb

index 4a18cd9796007eaaa2a337cbc7f55e9fc822bcdf..d443c4bf77b7a1a6d0a796bc1c46f7c17ff61ebf 100755 (executable)
@@ -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