1 require 'spec_helper_acceptance'
3 describe 'upcase function', :if => Puppet::Util::Package.versioncmp(return_puppet_version, '6.0.0') < 0 do
6 $a = ["wallless", "laparohysterosalpingooophorectomy", "brrr", "goddessship"]
8 notice(inline_template('upcase is <%= @o.inspect %>'))
10 it 'upcases arrays' do
11 apply_manifest(pp1, :catch_failures => true) do |r|
12 expect(r.stdout).to match(%r{upcase is \["WALLLESS", "LAPAROHYSTEROSALPINGOOOPHORECTOMY", "BRRR", "GODDESSSHIP"\]})
17 $a = "wallless laparohysterosalpingooophorectomy brrr goddessship"
19 notice(inline_template('upcase is <%= @o.inspect %>'))
21 it 'upcases strings' do
22 apply_manifest(pp2, :catch_failures => true) do |r|
23 expect(r.stdout).to match(%r{upcase is "WALLLESS LAPAROHYSTEROSALPINGOOOPHORECTOMY BRRR GODDESSSHIP"})
28 it 'handles no arguments'
29 it 'handles non strings or arrays'