Files
FOSSBilling/puphpet/puppet/modules/apache/spec/classes/dev_spec.rb
T
Vaidas Lungis 88512e863b add vagrant puphpet configuration
OS - Ubuntu 12.04
PHP - 5.4 with cli intl mcrypt curl gd imagick mbstring MySQL
IP - 10.20.30.12
target folder - /var/www/boxbilling
servername - boxbilling.test
XDEBUG
2014-12-11 12:42:50 +02:00

43 lines
1.2 KiB
Ruby

require 'spec_helper'
describe 'apache::dev', :type => :class do
context "on a Debian OS" do
let :facts do
{
:lsbdistcodename => 'squeeze',
:osfamily => 'Debian',
:operatingsystem => 'Debian',
:operatingsystemrelease => '6',
}
end
it { is_expected.to contain_class("apache::params") }
it { is_expected.to contain_package("libaprutil1-dev") }
it { is_expected.to contain_package("libapr1-dev") }
it { is_expected.to contain_package("apache2-prefork-dev") }
end
context "on a RedHat OS" do
let :facts do
{
:osfamily => 'RedHat',
:operatingsystem => 'RedHat',
:operatingsystemrelease => '6',
}
end
it { is_expected.to contain_class("apache::params") }
it { is_expected.to contain_package("httpd-devel") }
end
context "on a FreeBSD OS" do
let :pre_condition do
'include apache::package'
end
let :facts do
{
:osfamily => 'FreeBSD',
:operatingsystem => 'FreeBSD',
:operatingsystemrelease => '9',
}
end
it { is_expected.to contain_class("apache::params") }
end
end