Skip to content

Commit

Permalink
Merge pull request voxpupuli#725 from pallavjosh/master
Browse files Browse the repository at this point in the history
restart replaced with reload in service_spec.rb file
  • Loading branch information
jfryman committed Dec 8, 2015
2 parents a593ce1 + 15302b8 commit 230fc04
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/classes/service_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

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
Expand All @@ -24,11 +24,11 @@
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 {
Expand Down

0 comments on commit 230fc04

Please sign in to comment.