Merge pull request #725 from pallavjosh/master
restart replaced with reload in service_spec.rb file
This commit is contained in:
commit
c2571e563f
1 changed files with 3 additions and 3 deletions
|
@ -3,7 +3,7 @@ describe 'nginx::service' do
|
||||||
|
|
||||||
let :params do {
|
let :params do {
|
||||||
:configtest_enable => false,
|
: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_ensure => 'running',
|
||||||
:service_name => 'nginx',
|
:service_name => 'nginx',
|
||||||
} end
|
} end
|
||||||
|
@ -24,11 +24,11 @@ describe 'nginx::service' do
|
||||||
describe "when configtest_enable => true" do
|
describe "when configtest_enable => true" do
|
||||||
let :params do {
|
let :params do {
|
||||||
:configtest_enable => true,
|
: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_ensure => 'running',
|
||||||
:service_name => 'nginx',
|
:service_name => 'nginx',
|
||||||
} end
|
} 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
|
context "when service_restart => 'a restart command'" do
|
||||||
let :params do {
|
let :params do {
|
||||||
|
|
Loading…
Reference in a new issue