]> git.openstreetmap.org Git - chef.git/blobdiff - test/integration/rsyncd/inspec/rsync_spec.rb
Switch to using inspec for testing
[chef.git] / test / integration / rsyncd / inspec / rsync_spec.rb
similarity index 61%
rename from test/integration/rsyncd/serverspec/rsync_spec.rb
rename to test/integration/rsyncd/inspec/rsync_spec.rb
index 057ec3be38be9a27cd2a94b40335ff62647e0b6f..d2841824b60f80147984ef9065e4f697487fbca7 100644 (file)
@@ -1,8 +1,3 @@
-require "serverspec"
-
-# Required by serverspec
-set :backend, :exec
-
 describe package("rsync") do
   it { should be_installed }
 end
@@ -13,5 +8,6 @@ describe service("rsync") do
 end
 
 describe port(873) do
-  it { should be_listening.with("tcp") }
+  it { should be_listening }
+  its("protocols") { should cmp %w[tcp tcp6] }
 end