06439da9591709157a3704fb372157c09502183d
[mirror/dsa-puppet.git] / 3rdparty / modules / stdlib / spec / functions / glob_spec.rb
1 require 'spec_helper'
2
3 describe 'glob' do
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(1).and_raise_error(Puppet::ParseError) }
7   it { is_expected.to run.with_params('').and_return([]) }
8   it { is_expected.to run.with_params(['']).and_return([]) }
9   it { is_expected.to run.with_params(['', '']).and_return([]) }
10   it { is_expected.to run.with_params(['/etc/xyzxyzxyz', '/etcxyzxyzxyz']).and_return([]) }
11 end