summaryrefslogtreecommitdiff
path: root/code/environments/production/modules/stdlib/spec/functions/glob_spec.rb
blob: 209aca6c5605b1d7ed44c53cda89d8f6f5c537ec (plain)
1
2
3
4
5
6
7
8
9
10
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