52e6aa49c7
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.
20 lines
444 B
Ruby
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
|