module-nginx/spec/system/class_spec.rb

21 lines
444 B
Ruby
Raw Normal View History

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