# 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