diff options
Diffstat (limited to 'spec/classes/samba__server__service_spec.rb')
-rw-r--r-- | spec/classes/samba__server__service_spec.rb | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/spec/classes/samba__server__service_spec.rb b/spec/classes/samba__server__service_spec.rb index 6498124..ada7f21 100644 --- a/spec/classes/samba__server__service_spec.rb +++ b/spec/classes/samba__server__service_spec.rb @@ -27,9 +27,14 @@ describe 'samba::server::service' do it { should contain_service('smbd') } end - context 'on a Gentoo os family' do - let(:facts) {{ :osfamily => 'Linux', :operatingsystem => 'Gentoo' }} - it { should contain_service('samba') } + context 'on Linux os family' do + let(:facts) {{ :osfamily => 'Linux' }} + it { should raise_error(/is not supported by this module./) } + + context 'Gentoo' do + let(:facts) {{ :osfamily => 'Linux', :operatingsystem => 'Gentoo' }} + it { should contain_service('samba') } + end end context 'on an unsupported OS' do |