diff --git a/spec/classes/observium_spec.rb b/spec/classes/observium_spec.rb index 0cd963d..6f4da7a 100644 --- a/spec/classes/observium_spec.rb +++ b/spec/classes/observium_spec.rb @@ -9,7 +9,11 @@ it { is_expected.to compile } - + if :operatingsystem == 'RedHat' + it { is_expected.to contain_service('httpd') } + elsif :operatingsystem == 'Ubuntu' + it { is_expected.to contain_service('apache2') } + end end end end