1 #! /usr/bin/env ruby -S rspec
2 require 'spec_helper_acceptance'
4 describe 'keys function' do
8 $a = {'aaa'=>'bbb','ccc'=>'ddd'}
10 notice(inline_template('keys is <%= @o.sort.inspect %>'))
13 apply_manifest(pp, :catch_failures => true) do |r|
14 expect(r.stdout).to match(/keys is \["aaa", "ccc"\]/)
17 it 'handles non hashes'
18 it 'handles empty hashes'
21 it 'handles improper argument counts'