|
4 | 4 | it { is_expected.not_to eq(nil) }
|
5 | 5 | it { is_expected.to run.with_params().and_raise_error(Puppet::ParseError) }
|
6 | 6 | it { is_expected.to run.with_params([]).and_raise_error(Puppet::ParseError) }
|
| 7 | + it { is_expected.to run.with_params([], 'two') } |
7 | 8 | it { is_expected.to run.with_params([], 'two', 'three').and_raise_error(Puppet::ParseError) }
|
8 | 9 | it { is_expected.to run.with_params(1, 'two').and_raise_error(TypeError) }
|
9 | 10 |
|
|
12 | 13 | it { is_expected.to run.with_params([], 'two').and_return([]) }
|
13 | 14 | it { is_expected.to run.with_params(['two'], 'two').and_return([]) }
|
14 | 15 | it { is_expected.to run.with_params(['two', 'two'], 'two').and_return([]) }
|
| 16 | + it { is_expected.to run.with_params(['one', 'two', 'three'], '^t.*').and_return(['one']) } |
| 17 | + it { is_expected.to run.with_params(['ab', 'b', 'c', 'b'], 'b').and_return(['ab', 'c']) } |
15 | 18 | it { is_expected.to run.with_params(['one', 'two', 'three'], 'four').and_return(['one', 'two', 'three']) }
|
16 | 19 | it { is_expected.to run.with_params(['one', 'two', 'three'], 'e').and_return(['one', 'two', 'three']) }
|
17 | 20 | it { is_expected.to run.with_params(['one', 'two', 'three'], 'two').and_return(['one', 'three']) }
|
18 | 21 | it { is_expected.to run.with_params(['two', 'one', 'two', 'three', 'two'], 'two').and_return(['one', 'three']) }
|
19 | 22 | it { is_expected.to run.with_params(['one', 'two', 'three', 'two'], ['one', 'two']).and_return(['three']) }
|
| 23 | + it { is_expected.to run.with_params(['abracadabra'], 'abr').and_return(['abracadabra']) } |
| 24 | + it { is_expected.to run.with_params(['abracadabra'], '^.*jimbob.*$').and_return(['abracadabra']) } |
20 | 25 | end
|
21 | 26 |
|
22 | 27 | describe 'deleting from a string' do
|
|
0 commit comments