puppet-httpd/spec/classes/apache_spec.rb
William Van Hevelingen 05fcec5f9c (#13073) Add missing puppet spec tests
This commit adds full puppet spec coverage
for all classes and defines.
2012-03-16 00:38:53 -07:00

25 lines
512 B
Ruby

require 'spec_helper'
describe 'apache', :type => :class do
it { should include_class("apache::params") }
it { should contain_package("httpd") }
it { should contain_service("httpd").with(
'ensure' => 'running',
'enable' => 'true',
'subscribe' => 'Package[httpd]'
)
}
it { should contain_file("httpd_vdir").with(
'ensure' => 'directory',
'recurse' => 'true',
'purge' => 'true',
'notify' => 'Service[httpd]',
'require' => 'Package[httpd]'
)
}
end