1 require 'spec_helper_acceptance'
3 describe 'keys function', :if => Puppet::Util::Package.versioncmp(Puppet.version, '5.5.0') < 0 do
6 $a = {'aaa'=>'bbb','ccc'=>'ddd'}
8 notice(inline_template('keys is <%= @o.sort.inspect %>'))
11 apply_manifest(pp, :catch_failures => true) do |r|
12 expect(r.stdout).to match(%r{keys is \["aaa", "ccc"\]})
15 it 'handles non hashes'
16 it 'handles empty hashes'
19 it 'handles improper argument counts'