fuel-library/deployment/puppet/tweaks/spec/classes/tweaks_apache_wrappers_spec.rb
Alex Schultz add100a3a5 Unit tests for the tweaks class
This change implements tests for the tweaks class.

Change-Id: Ic07671eaf17bb622cd906670901787aaa8b397dd
Related-Bug: #1507751
2015-11-16 08:33:08 -06:00

48 lines
933 B
Ruby

require 'spec_helper'
describe 'tweaks::apache_wrappers' do
let(:default_params) { {
} }
shared_examples_for 'tweaks::apache_wrappers configuration' do
let :params do
default_params
end
context 'with valid params' do
let :params do
default_params.merge({})
end
it 'configures with the default params' do
should contain_class('tweaks::apache_wrappers')
end
end
end
context 'on Debian platforms' do
let :facts do
{ :osfamily => 'Debian',
:operatingsystem => 'Debian',
:hostname => 'hostname.example.com', }
end
it_configures 'tweaks::apache_wrappers configuration'
end
context 'on RedHat platforms' do
let :facts do
{ :osfamily => 'RedHat',
:operatingsystem => 'RedHat',
:hostname => 'hostname.example.com', }
end
it_configures 'tweaks::apache_wrappers configuration'
end
end