module-nginx/spec/system/class_spec.rb
Ashley Penney 52e6aa49c7 Add basic rspec-system tests.
This adds some really basic system tests so that we can test that
various refactorings work correctly and make life easier for you
before submitting.
2013-09-04 15:11:36 -04:00

20 lines
444 B
Ruby

require 'spec_helper_system'
describe "nginx class:" do
context 'should run successfully' do
pp = "class { 'nginx': }"
context puppet_apply(pp) do
its(:stderr) { should be_empty }
its(:exit_code) { should_not == 1 }
its(:refresh) { should be_nil }
its(:stderr) { should be_empty }
its(:exit_code) { should be_zero }
end
end
describe service('nginx') do
it { should be_running }
end
end