21 lines
444 B
Ruby
21 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
|