X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/f3250a00410a99a2b4ae47f16888acbb3b506ee9..45c0862be818c87ac9825ed36a7a2e9d3a1aab7c:/test/integration/spamassassin/serverspec/spamassassin_spec.rb diff --git a/test/integration/spamassassin/serverspec/spamassassin_spec.rb b/test/integration/spamassassin/serverspec/spamassassin_spec.rb index 1276f140c..d96394f9e 100644 --- a/test/integration/spamassassin/serverspec/spamassassin_spec.rb +++ b/test/integration/spamassassin/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