diff --git a/spec/classes/init_spec.rb b/spec/classes/init_spec.rb index b549d07..534c40c 100644 --- a/spec/classes/init_spec.rb +++ b/spec/classes/init_spec.rb @@ -366,19 +366,6 @@ end end - context 'when osfamily is unsupported' do - let :facts do - { osfamily: 'Unsupported', - operatingsystemmajrelease: '9', - monit_version: '5' } - end - - it 'fails' do - expect do - is_expected.to contain_class('monit') - end.to raise_error(Puppet::Error, %r{monit supports osfamilies Debian and RedHat\. Detected osfamily is \.}) - end - end end describe 'variable type and content validations' do