Suggest different variables to use if we want to tunnel both v4 and v6
[mirror/dsa-puppet.git] / 3rdparty / modules / stdlib / spec / acceptance / str2bool_spec.rb
1 require 'spec_helper_acceptance'
2
3 describe 'str2bool function' do
4   describe 'success' do
5     pp = <<-DOC
6       $o = str2bool('y')
7       notice(inline_template('str2bool is <%= @o.inspect %>'))
8     DOC
9     it 'works with "y"' do
10       apply_manifest(pp, :catch_failures => true) do |r|
11         expect(r.stdout).to match(%r{str2bool is true})
12       end
13     end
14     it 'works with "Y"'
15     it 'works with "yes"'
16     it 'works with "1"'
17     it 'works with "true"'
18     it 'works with "n"'
19     it 'works with "N"'
20     it 'works with "no"'
21     it 'works with "0"'
22     it 'works with "false"'
23     it 'works with undef'
24   end
25   describe 'failure' do
26     it 'handles no arguments'
27     it 'handles non arrays or strings'
28   end
29 end