puppet-httpd/spec/classes/ssl_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

31 lines
615 B
Ruby

require 'spec_helper'
describe 'apache::ssl', :type => :class do
it { should include_class("apache") }
it { should include_class("apache::params") }
describe "it should install the ssl package in redhat" do
let :facts do
{ :operatingsystem => 'redhat' }
end
it { should contain_package("apache_ssl_package").with(
'ensure' => 'installed'
)
}
end
describe "it should contain a2mod ssl in debian" do
let :facts do
{ :operatingsystem => 'debian' }
end
it { should contain_a2mod("ssl").with(
'ensure' => 'present'
)
}
end
end