Skip to content

Instantly share code, notes, and snippets.

@jenpocheng
Created October 10, 2016 19:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jenpocheng/53edc16aefae0e87af89fae644d1d8a9 to your computer and use it in GitHub Desktop.
Save jenpocheng/53edc16aefae0e87af89fae644d1d8a9 to your computer and use it in GitHub Desktop.
Init test for apache init.pp
require 'spec_helper'
describe 'apache' do
let(:pre_condition) do
puppet_stubs(%w{
monit::conf
})
end
it { should compile.with_all_deps }
# your tests here!
# for example:
# it 'installs a package' do
# should contain_package('mypackage')
# end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment