]> git.openstreetmap.org Git - chef.git/blobdiff - test/integration/web-cgimap/inspec/cgimap_spec.rb
Switch to using inspec for testing
[chef.git] / test / integration / web-cgimap / inspec / cgimap_spec.rb
similarity index 51%
rename from test/integration/web-cgimap/serverspec/cgimap_spec.rb
rename to test/integration/web-cgimap/inspec/cgimap_spec.rb
index d91e14576a70fa683b28d7bb2bdaf97685ffd652..8c9b5ce24e45b6363f994dbf46837f20a56c4e5a 100644 (file)
@@ -1,13 +1,9 @@
-require "serverspec"
-
-# Required by serverspec
-set :backend, :exec
-
 describe service("cgimap") do
   it { should be_enabled }
   it { should be_running }
 end
 
 describe port(8000) do
-  it { should be_listening.with("tcp") }
+  it { should be_listening }
+  its("protocols") { should cmp "tcp" }
 end