1 describe package("apache2") do
2 it { should be_installed }
5 describe service("apache2") do
6 it { should be_enabled }
7 it { should be_running }
11 it { should be_listening }
12 its("protocols") { should cmp "tcp" }
16 it { should be_listening }
17 its("protocols") { should cmp "tcp" }
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 }