Sha256: 2254e943f4f5c284a80a88ae3dec548cb35e1a2a3e1b13a070b3ecca922cfd76

Contents?: true

Size: 985 Bytes

Versions: 11

Compression:

Stored size: 985 Bytes

Contents

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 contain_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 contain_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 contain_class("apache::params") }
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
freighthop-0.6.1 modules/apache/spec/classes/dev_spec.rb
freighthop-0.6.0 modules/apache/spec/classes/dev_spec.rb
freighthop-0.5.2 modules/apache/spec/classes/dev_spec.rb
freighthop-0.5.1 modules/apache/spec/classes/dev_spec.rb
freighthop-0.5.0 modules/apache/spec/classes/dev_spec.rb
freighthop-0.4.1 modules/apache/spec/classes/dev_spec.rb
freighthop-0.4.0 modules/apache/spec/classes/dev_spec.rb
freighthop-0.3.3 modules/apache/spec/classes/dev_spec.rb
freighthop-0.3.2 modules/apache/spec/classes/dev_spec.rb
freighthop-0.3.1 modules/apache/spec/classes/dev_spec.rb
freighthop-0.3.0 modules/apache/spec/classes/dev_spec.rb