1 service_name = if os.name == "debian"
 
   7 describe package("spamassassin") do
 
   8   it { should be_installed }
 
  11 describe service(service_name) do
 
  12   it { should be_enabled }
 
  13   it { should be_running }
 
  17   it { should be_listening }
 
  18   its("protocols") { should cmp %w[tcp tcp6] }