restart relaced with reload in service_spec.rb file

This commit is contained in:
pjoshi 2015-12-03 13:56:07 +05:30
parent 72e7c579ca
commit 914f92a49a

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 restart',
:service_restart => '/etc/init.d/nginx configtest && /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 restart',
:service_restart => '/etc/init.d/nginx configtest && /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 restart') }
it { is_expected.to contain_service('nginx').with_restart('/etc/init.d/nginx configtest && /etc/init.d/nginx reload') }
context "when service_restart => 'a restart command'" do
let :params do {