1 require 'spec_helper_acceptance'
3 describe 'validate_array function' do
9 it 'validates a single argument' do
10 apply_manifest(pp1, :catch_failures => true)
16 validate_array($one,$two)
18 it 'validates an multiple arguments' do
19 apply_manifest(pp2, :catch_failures => true)
22 %{validate_array({'a' => 'hash' })},
23 %{validate_array('string')},
24 %{validate_array(false)},
25 %{validate_array(undef)},
27 it "rejects #{pp.inspect}" do
28 expect(apply_manifest(pp, :expect_failures => true).stderr).to match(%r{is not an Array\. It looks to be a})
33 it 'handles improper number of arguments'