aboutsummaryrefslogtreecommitdiff
path: root/spec/acceptance/tests/resource/cron/should_remove_cron_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/acceptance/tests/resource/cron/should_remove_cron_spec.rb')
-rw-r--r--spec/acceptance/tests/resource/cron/should_remove_cron_spec.rb8
1 files changed, 3 insertions, 5 deletions
diff --git a/spec/acceptance/tests/resource/cron/should_remove_cron_spec.rb b/spec/acceptance/tests/resource/cron/should_remove_cron_spec.rb
index 89190a5..d23cded 100644
--- a/spec/acceptance/tests/resource/cron/should_remove_cron_spec.rb
+++ b/spec/acceptance/tests/resource/cron/should_remove_cron_spec.rb
@@ -1,8 +1,6 @@
require 'spec_helper_acceptance'
-require 'puppet/acceptance/common_utils'
-extend Puppet::Acceptance::CronUtils
-Rspec.context 'when removing crontab' do
+RSpec.context 'when removing crontab' do
before(:each) do
compatible_agents.each do |agent|
step 'ensure the user exists via puppet'
@@ -28,9 +26,9 @@ Rspec.context 'when removing crontab' do
expect(stdout).to match(%r{crontest\D+ensure:\s+removed})
end
- step 'verify that crontab -l contains what you expected'
+ step ' contains what you expected'
run_cron_on(host, :list, 'tstuser') do
- expect(stderr).to match(%r{/bin/true})
+ expect(stderr).not_to match(%r{/bin/true})
end
end
end