Suggest different variables to use if we want to tunnel both v4 and v6
[mirror/dsa-puppet.git] / 3rdparty / modules / stdlib / spec / acceptance / getparam_spec.rb
1 require 'spec_helper_acceptance'
2
3 describe 'getparam function' do
4   describe 'success' do
5     pp = <<-DOC
6       notify { 'rspec':
7         message => 'custom rspec message',
8       }
9       $o = getparam(Notify['rspec'], 'message')
10       notice(inline_template('getparam is <%= @o.inspect %>'))
11     DOC
12     it 'getparam a notify' do
13       apply_manifest(pp, :catch_failures => true) do |r|
14         expect(r.stdout).to match(%r{getparam is "custom rspec message"})
15       end
16     end
17   end
18   describe 'failure' do
19     it 'handles no arguments'
20     it 'handles non strings'
21   end
22 end