1 #! /usr/bin/env ruby -S rspec
2 require 'spec_helper_acceptance'
4 describe 'str2bool function' do
9 notice(inline_template('str2bool is <%= @o.inspect %>'))
12 apply_manifest(pp, :catch_failures => true) do |r|
13 expect(r.stdout).to match(/str2bool is true/)
19 it 'works with "true"'
24 it 'works with "false"'
28 it 'handles no arguments'
29 it 'handles non arrays or strings'