4 it { is_expected.not_to eq(nil) }
5 it { is_expected.to run.with_params.and_raise_error(Puppet::ParseError) }
6 it { is_expected.to run.with_params('one', 'two').and_raise_error(Puppet::ParseError) }
7 it { is_expected.to run.with_params([]).and_raise_error(Puppet::ParseError) }
8 it { is_expected.to run.with_params({}).and_raise_error(Puppet::ParseError) }
9 it { is_expected.to run.with_params(1).and_raise_error(Puppet::ParseError) }
10 it { is_expected.to run.with_params('').and_raise_error(Puppet::ParseError) }
11 it { is_expected.to run.with_params(:undef).and_raise_error(Puppet::ParseError) }
12 it { is_expected.to run.with_params(nil).and_raise_error(Puppet::ParseError) }
13 it { is_expected.to run.with_params('/path/to/a/file.ext', []).and_raise_error(Puppet::ParseError) }
14 it { is_expected.to run.with_params('/path/to/a/file.ext').and_return('/path/to/a') }
15 it { is_expected.to run.with_params('relative_path/to/a/file.ext').and_return('relative_path/to/a') }
17 context 'with UTF8 and double byte characters' do
18 it { is_expected.to run.with_params('scheme:///√ạĺűē/竹.ext').and_return('scheme:///√ạĺűē') }
19 it { is_expected.to run.with_params('ҝẽγ:/√ạĺűē/竹.ㄘ').and_return('ҝẽγ:/√ạĺűē') }