]> git.openstreetmap.org Git - chef.git/blobdiff - test/integration/spamassassin/inspec/spamassassin_spec.rb
Switch to using inspec for testing
[chef.git] / test / integration / spamassassin / inspec / spamassassin_spec.rb
similarity index 65%
rename from test/integration/spamassassin/serverspec/spamassassin_spec.rb
rename to test/integration/spamassassin/inspec/spamassassin_spec.rb
index d96394f9e0df31ec930d0593efb5dee77f47e114..18506eaa0371f27c9586bce6a1a821ece0f6c3b0 100644 (file)
@@ -1,9 +1,4 @@
-require "serverspec"
-
-# Required by serverspec
-set :backend, :exec
-
-service_name = if os[:family] == "debian"
+service_name = if os.name == "debian"
                  "spamd"
                else
                  "spamassassin"
@@ -19,5 +14,6 @@ describe service(service_name) do
 end
 
 describe port(783) do
-  it { should be_listening.with("tcp") }
+  it { should be_listening }
+  its("protocols") { should cmp %w[tcp tcp6] }
 end