1 require 'spec_helper_acceptance'
3 describe 'type3x function' do
6 %{type3x({ 'a' => 'hash' })} => 'Hash',
7 %{type3x(['array'])} => 'Array',
8 %{type3x(false)} => 'Boolean',
9 %{type3x('asdf')} => 'String',
10 %{type3x(242)} => 'Integer',
11 %{type3x(3.14)} => 'Float',
13 it "with type #{type}" do
14 apply_manifest(pp, :catch_failures => true)
23 it 'handles improper number of arguments' do
24 expect(apply_manifest(pp_fail, :expect_failures => true).stderr).to match(%r{Wrong number of arguments})