blob: 98fb93f604d058830119f0d1258f63d1f8139506 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
require 'spec_helper'
describe 'wrong_os' do
let (:facts) { {
:augeas_lens_dir => :undef,
:augeas_ruby_version => :undef,
:augeas_test_source => :undef,
:augeas_version => :undef,
:osfamily => 'MS-DOS',
} }
it 'should fail' do
expect { is_expected.to contain_package('ruby-augeas') }.to raise_error(Puppet::Error, /Unsupported OS family/)
end
end
|