Skip to content

Instantly share code, notes, and snippets.

@grubernaut
Last active August 29, 2015 14:14
Show Gist options
  • Save grubernaut/19fe376a1f654ff0d2fa to your computer and use it in GitHub Desktop.
Save grubernaut/19fe376a1f654ff0d2fa to your computer and use it in GitHub Desktop.
Puppet Things
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