aboutsummaryrefslogtreecommitdiff
path: root/spec/acceptance/tests
diff options
context:
space:
mode:
authorJorie Tappa <jorie@jorietappa.com>2018-08-01 16:09:42 -0500
committerJorie Tappa <jorie@jorietappa.com>2018-08-01 16:13:33 -0500
commit286f7aaa3a1387b689a6a00db705f15b46579ce6 (patch)
treea933458cb52f606dbb3715773874fb4a480128a8 /spec/acceptance/tests
parent45c0c71d2e3b3b7268a356eea86231a1b35cd4f0 (diff)
downloadpuppet-cron_core-286f7aaa3a1387b689a6a00db705f15b46579ce6.tar.gz
puppet-cron_core-286f7aaa3a1387b689a6a00db705f15b46579ce6.tar.bz2
Fix Style/RegexpLiteral violations
Diffstat (limited to 'spec/acceptance/tests')
-rw-r--r--spec/acceptance/tests/resource/cron/should_create_cron.rb2
-rw-r--r--spec/acceptance/tests/resource/cron/should_match_existing.rb2
-rw-r--r--spec/acceptance/tests/resource/cron/should_remove_cron.rb2
-rw-r--r--spec/acceptance/tests/resource/cron/should_update_existing.rb4
4 files changed, 5 insertions, 5 deletions
diff --git a/spec/acceptance/tests/resource/cron/should_create_cron.rb b/spec/acceptance/tests/resource/cron/should_create_cron.rb
index 29dcfc4..d01c091 100644
--- a/spec/acceptance/tests/resource/cron/should_create_cron.rb
+++ b/spec/acceptance/tests/resource/cron/should_create_cron.rb
@@ -30,6 +30,6 @@ 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, "Incorrect crontab for tstuser on #{host}")
+ assert_match(%r{\* \* \* \* \* /bin/true}, stdout, "Incorrect crontab for tstuser on #{host}")
end
end
diff --git a/spec/acceptance/tests/resource/cron/should_match_existing.rb b/spec/acceptance/tests/resource/cron/should_match_existing.rb
index d309a84..96545e3 100644
--- a/spec/acceptance/tests/resource/cron/should_match_existing.rb
+++ b/spec/acceptance/tests/resource/cron/should_match_existing.rb
@@ -31,6 +31,6 @@ 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, "Did not find crontab for tstuser on #{host}")
+ assert_match(%r{\* \* \* \* \* /bin/true}, stdout, "Did not find crontab for tstuser on #{host}")
end
end
diff --git a/spec/acceptance/tests/resource/cron/should_remove_cron.rb b/spec/acceptance/tests/resource/cron/should_remove_cron.rb
index 1759172..0713c95 100644
--- a/spec/acceptance/tests/resource/cron/should_remove_cron.rb
+++ b/spec/acceptance/tests/resource/cron/should_remove_cron.rb
@@ -33,6 +33,6 @@ agents.each do |host|
step 'verify that crontab -l contains what you expected'
run_cron_on(host, :list, 'tstuser') do
- assert_no_match(/\/bin\/true/, stderr, "Error: Found entry for tstuser on #{host}")
+ assert_no_match(%r{/bin/true}, stderr, "Error: Found entry for tstuser on #{host}")
end
end
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