|
8 | 8 | is_expected.to run.with_params([], 'extra').and_raise_error(Puppet::ParseError, /wrong number of arguments/i)
|
9 | 9 | }
|
10 | 10 | it { is_expected.to run.with_params(1).and_raise_error(Puppet::ParseError, /Unknown type given/) }
|
11 |
| - it { is_expected.to run.with_params({}).and_raise_error(Puppet::ParseError, /Unknown type given/) } |
12 | 11 | it { is_expected.to run.with_params(true).and_raise_error(Puppet::ParseError, /Unknown type given/) }
|
13 |
| - it { is_expected.to run.with_params('1').and_raise_error(Puppet::ParseError, /Requires either string or array to work/) } |
14 |
| - it { is_expected.to run.with_params('1.0').and_raise_error(Puppet::ParseError, /Requires either string or array to work/) } |
| 12 | + it { is_expected.to run.with_params('1').and_raise_error(Puppet::ParseError, /Requires either string, array or hash to work/) } |
| 13 | + it { is_expected.to run.with_params('1.0').and_raise_error(Puppet::ParseError, /Requires either string, array or hash to work/) } |
15 | 14 | it { is_expected.to run.with_params([]).and_return(0) }
|
16 | 15 | it { is_expected.to run.with_params(['a']).and_return(1) }
|
17 | 16 | it { is_expected.to run.with_params(['one', 'two', 'three']).and_return(3) }
|
18 | 17 | it { is_expected.to run.with_params(['one', 'two', 'three', 'four']).and_return(4) }
|
19 | 18 |
|
| 19 | + it { is_expected.to run.with_params({}).and_return(0) } |
| 20 | + it { is_expected.to run.with_params({'1' => '2'}).and_return(1) } |
| 21 | + it { is_expected.to run.with_params({'1' => '2', '4' => '4'}).and_return(2) } |
| 22 | + |
20 | 23 | it { is_expected.to run.with_params('').and_return(0) }
|
21 | 24 | it { is_expected.to run.with_params('a').and_return(1) }
|
22 | 25 | it { is_expected.to run.with_params('abc').and_return(3) }
|
|
0 commit comments