aboutsummaryrefslogtreecommitdiff
path: root/spec/acceptance/tests/resource/cron/should_update_existing.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/acceptance/tests/resource/cron/should_update_existing.rb')
-rw-r--r--spec/acceptance/tests/resource/cron/should_update_existing.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/acceptance/tests/resource/cron/should_update_existing.rb b/spec/acceptance/tests/resource/cron/should_update_existing.rb
index eff634b..b9b9bec 100644
--- a/spec/acceptance/tests/resource/cron/should_update_existing.rb
+++ b/spec/acceptance/tests/resource/cron/should_update_existing.rb
@@ -27,7 +27,7 @@ agents.each do |host|
step 'verify that crontab -l contains what you expected'
run_cron_on(host, :list, 'tstuser') do
- assert_match(/\* \* \* \* \* \/bin\/true/, stdout, "Didn't find correct crobtab entry for tstuser on #{host}")
+ assert_match(%r{\* \* \* \* \* /bin/true}, stdout, "Didn't find correct crobtab entry for tstuser on #{host}")
end
step 'apply the resource change on the host'
@@ -37,6 +37,6 @@ agents.each do |host|
step 'verify that crontab -l contains what you expected'
run_cron_on(host, :list, 'tstuser') do
- assert_match(/\* 0-6 \* \* \* \/bin\/true/, stdout, "Didn't find correctly modified time entry in crobtab entry for tstuser on #{host}")
+ assert_match(%r{\* 0-6 \* \* \* /bin/true}, stdout, "Didn't find correctly modified time entry in crobtab entry for tstuser on #{host}")
end
end