1 describe package("nginx") do
 
   2   it { should be_installed }
 
   5 describe service("nginx") do
 
   6   it { should be_enabled }
 
   7   it { should be_running }
 
  11   it { should be_listening }
 
  12   its("protocols") { should cmp %w[tcp tcp6] }
 
  16   it { should be_listening }
 
  17   its("protocols") { should cmp %w[tcp tcp6] }
 
  20 describe http("http://localhost") do
 
  21   its("status") { should cmp 301 }
 
  24 describe http("https://localhost", :ssl_verify => false) do
 
  25   its("status") { should cmp 200 }