Merge pull request #725 from pallavjosh/master

restart replaced with reload in service_spec.rb file
This commit is contained in:
James Fryman 2015-12-08 09:44:45 -06:00
commit c2571e563f

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 reload',
: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 reload',
: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 reload') }
context "when service_restart => 'a restart command'" do
let :params do {