removed configtest command

This commit is contained in:
pjoshi 2015-12-03 18:37:58 +05:30
parent 914f92a49a
commit 2be9096e34

View file

@ -3,7 +3,7 @@ describe 'nginx::service' do
let :params do {
:configtest_enable => false,
:service_restart => '/etc/init.d/nginx configtest && /etc/init.d/nginx relaod',
:service_restart => '/etc/init.d/nginx relaod',
:service_ensure => 'running',
:service_name => 'nginx',
} end
@ -24,11 +24,11 @@ describe 'nginx::service' do
describe "when configtest_enable => true" do
let :params do {
:configtest_enable => true,
:service_restart => '/etc/init.d/nginx configtest && /etc/init.d/nginx relaod',
:service_restart => '/etc/init.d/nginx relaod',
:service_ensure => 'running',
:service_name => 'nginx',
} end
it { is_expected.to contain_service('nginx').with_restart('/etc/init.d/nginx configtest && /etc/init.d/nginx reload') }
it { is_expected.to contain_service('nginx').with_restart('/etc/init.d/nginx reload') }
context "when service_restart => 'a restart command'" do
let :params do {