Last active
August 29, 2015 14:14
-
-
Save grubernaut/19fe376a1f654ff0d2fa to your computer and use it in GitHub Desktop.
Puppet Things
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'spec_helper' | |
describe 'apache2', :type => :class do | |
context 'defaults' do | |
let :pre_condition do | |
"apache2::site { 'foo': | |
enabled => true, | |
config => 'test' | |
} | |
" | |
end | |
it { should contain_class('apache2::install').that_comes_before( | |
'Class[apache2::config]') } | |
it { should contain_class('apache2::config') } | |
# it { should contain_create_resources("apache2::module") } | |
it { should contain_class('apache2::install').that_comes_before('Apache::Site[foo]') } | |
end | |
end | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment