1 #! /usr/bin/env ruby -S rspec
2 require 'spec_helper_acceptance'
4 describe 'getparam function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
6 it 'getparam a notify' do
9 message => 'custom rspec message',
11 $o = getparam(Notify['rspec'], 'message')
12 notice(inline_template('getparam is <%= @o.inspect %>'))
15 apply_manifest(pp, :catch_failures => true) do |r|
16 expect(r.stdout).to match(/getparam is "custom rspec message"/)
21 it 'handles no arguments'
22 it 'handles non strings'