X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/ab47927c016597f8602b81dcdc168ad5c335389d..32bd9dc80026c2613f386669b3d1eea358052ddb:/test/integration/mail/serverspec/spamassassin_spec.rb diff --git a/test/integration/mail/serverspec/spamassassin_spec.rb b/test/integration/mail/serverspec/spamassassin_spec.rb index 1276f140c..d96394f9e 100644 --- a/test/integration/mail/serverspec/spamassassin_spec.rb +++ b/test/integration/mail/serverspec/spamassassin_spec.rb @@ -3,11 +3,17 @@ require "serverspec" # Required by serverspec set :backend, :exec +service_name = if os[:family] == "debian" + "spamd" + else + "spamassassin" + end + describe package("spamassassin") do it { should be_installed } end -describe service("spamassassin") do +describe service(service_name) do it { should be_enabled } it { should be_running } end