mirror of
https://github.com/cliffe/SecGen.git
synced 2026-02-22 11:48:17 +00:00
12 lines
516 B
Ruby
Executable File
12 lines
516 B
Ruby
Executable File
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
|