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