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