forked from puppetlabs/puppetlabs-apache
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdev_spec.rb
More file actions
38 lines (37 loc) · 985 Bytes
/
dev_spec.rb
File metadata and controls
38 lines (37 loc) · 985 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
require 'spec_helper'
describe 'apache::dev', :type => :class do
context "on a Debian OS" do
let :facts do
{
:osfamily => 'Debian',
:operatingsystemrelease => '6',
}
end
it { should include_class("apache::params") }
it { should contain_package("libaprutil1-dev") }
it { should contain_package("libapr1-dev") }
it { should contain_package("apache2-prefork-dev") }
end
context "on a RedHat OS" do
let :facts do
{
:osfamily => 'RedHat',
:operatingsystemrelease => '6',
}
end
it { should include_class("apache::params") }
it { should contain_package("httpd-devel") }
end
context "on a FreeBSD OS" do
let :pre_condition do
'include apache::package'
end
let :facts do
{
:osfamily => 'FreeBSD',
:operatingsystemrelease => '9',
}
end
it { should include_class("apache::params") }
end
end