diff options
author | Wilson McCoubrey <wilson@mccoubreys.co.uk> | 2017-03-21 13:45:39 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-21 13:45:39 +0000 |
commit | fd5c5765ddc68fae283cb6284efedf2011cc8a0e (patch) | |
tree | 66d64e0a011936c34f6a7e8e3bc1d8b20d8727fb /spec/functions | |
parent | 9a6a33e3c9bef05dc6d5b02dddafcb82bead2271 (diff) | |
parent | 6092ede8d86746038df4a367191d232003652c55 (diff) |
Merge pull request #718 from sspreitzer/master_glob
Add glob function
Diffstat (limited to 'spec/functions')
-rwxr-xr-x | spec/functions/glob_spec.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/spec/functions/glob_spec.rb b/spec/functions/glob_spec.rb new file mode 100755 index 0000000..06439da --- /dev/null +++ b/spec/functions/glob_spec.rb @@ -0,0 +1,11 @@ +require 'spec_helper' + +describe 'glob' do + it { is_expected.not_to eq(nil) } + it { is_expected.to run.with_params().and_raise_error(Puppet::ParseError) } + it { is_expected.to run.with_params(1).and_raise_error(Puppet::ParseError) } + it { is_expected.to run.with_params('').and_return([]) } + it { is_expected.to run.with_params(['']).and_return([]) } + it { is_expected.to run.with_params(['', '']).and_return([]) } + it { is_expected.to run.with_params(['/etc/xyzxyzxyz', '/etcxyzxyzxyz']).and_return([]) } +end |