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