serverspec 0.4.6 → 0.4.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/serverspec/setup.rb +6 -3
- data/lib/serverspec/version.rb +1 -1
- metadata +1 -1
data/lib/serverspec/setup.rb
CHANGED
|
@@ -34,17 +34,20 @@ EOF
|
|
|
34
34
|
content = <<-EOF
|
|
35
35
|
require 'spec_helper'
|
|
36
36
|
|
|
37
|
-
describe 'httpd' do
|
|
37
|
+
describe package('httpd') do
|
|
38
38
|
it { should be_installed }
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
describe service('httpd') do
|
|
39
42
|
it { should be_enabled }
|
|
40
43
|
it { should be_running }
|
|
41
44
|
end
|
|
42
45
|
|
|
43
|
-
describe
|
|
46
|
+
describe port(80) do
|
|
44
47
|
it { should be_listening }
|
|
45
48
|
end
|
|
46
49
|
|
|
47
|
-
describe '/etc/httpd/conf/httpd.conf' do
|
|
50
|
+
describe file('/etc/httpd/conf/httpd.conf') do
|
|
48
51
|
it { should be_file }
|
|
49
52
|
it { should contain "ServerName #{@hostname}" }
|
|
50
53
|
end
|
data/lib/serverspec/version.rb
CHANGED