glob_spec.rb 514 B

1234567891011
  1. require 'spec_helper'
  2. describe 'glob' do
  3. it { is_expected.not_to eq(nil) }
  4. it { is_expected.to run.with_params.and_raise_error(Puppet::ParseError) }
  5. it { is_expected.to run.with_params(1).and_raise_error(Puppet::ParseError) }
  6. it { is_expected.to run.with_params('').and_return([]) }
  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(['/etc/xyzxyzxyz', '/etcxyzxyzxyz']).and_return([]) }
  10. end