]> git.openstreetmap.org Git - chef.git/blobdiff - test/integration/dhcpd/inspec/dhcpd_spec.rb
Switch to using inspec for testing
[chef.git] / test / integration / dhcpd / inspec / dhcpd_spec.rb
similarity index 64%
rename from test/integration/dhcpd/serverspec/dhcpd_spec.rb
rename to test/integration/dhcpd/inspec/dhcpd_spec.rb
index 643f083f4bee8bccefb995dad2ee4c721cdc87a5..dd6ec8664b0514362e6c0769ddc1a471c20c4099 100644 (file)
@@ -1,8 +1,3 @@
-require "serverspec"
-
-# Required by serverspec
-set :backend, :exec
-
 describe package("isc-dhcp-server") do
   it { should be_installed }
 end
@@ -13,5 +8,6 @@ describe service("isc-dhcp-server") do
 end
 
 describe port(67) do
-  it { should be_listening.with("udp") }
+  it { should be_listening }
+  its("protocols") { should cmp "udp" }
 end