diff --git a/test/integration/default/controls/jobs.rb b/test/integration/default/controls/jobs.rb index 7e1c297..9809394 100644 --- a/test/integration/default/controls/jobs.rb +++ b/test/integration/default/controls/jobs.rb @@ -61,7 +61,9 @@ describe file('/etc/logrotate.d/nginx') do its('content') { should include 'compress' } its('content') { should include 'delaycompress' } its('content') { should include 'prerotate' } - its('content') { should include 'if [ -d /etc/logrotate.d/httpd-prerotate ]; then \\' } + its('content') do + should include 'if [ -d /etc/logrotate.d/httpd-prerotate ]; then \\' + end its('content') { should include ' run-parts /etc/logrotate.d/httpd-prerotate; \\' } its('content') { should include ' fi \\' } its('content') { should include 'postrotate' }