]> git.openstreetmap.org Git - chef.git/blobdiff - test/integration/geodns/inspec/gdsnd_spec.rb
Switch to using inspec for testing
[chef.git] / test / integration / geodns / inspec / gdsnd_spec.rb
similarity index 53%
rename from test/integration/serverinfo/gdsnd_spec.rb
rename to test/integration/geodns/inspec/gdsnd_spec.rb
index 65adc36e25a62f8e8f191e692ca2e80fc85763bd..52befb11cd9f82b144b069b9517b4a591f28fe7b 100644 (file)
@@ -1,8 +1,3 @@
-require "serverspec"
-
-# Required by serverspec
-set :backend, :exec
-
 describe package("gdnsd") do
   it { should be_installed }
 end
@@ -13,6 +8,6 @@ describe service("gdnsd") do
 end
 
 describe port(53) do
-  it { should be_listening.with("udp") }
-  it { should be_listening.with("tcp") }
+  it { should be_listening }
+  its("protocols") { should cmp %w[udp tcp] }
 end