describe 'apache::dev', :type => :class do let :pre_condition do 'include apache' end context "on a Debian OS" do let :facts do { :osfamily => 'Debian', :operatingsystemrelease => '6', :concat_basedir => '/dne', } end 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', :concat_basedir => '/dne', } end it { should contain_package("httpd-devel") } end end