summaryrefslogtreecommitdiff
path: root/spec/functional/resource/cron_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/functional/resource/cron_spec.rb')
-rw-r--r--spec/functional/resource/cron_spec.rb5
1 files changed, 1 insertions, 4 deletions
diff --git a/spec/functional/resource/cron_spec.rb b/spec/functional/resource/cron_spec.rb
index f742d8e259..36d7177f4d 100644
--- a/spec/functional/resource/cron_spec.rb
+++ b/spec/functional/resource/cron_spec.rb
@@ -80,10 +80,7 @@ describe Chef::Resource::Cron, :requires_root, :unix_only do
end
it "should create a crontab entry" do
- puts shell_out!("cat /var/at/tabs/root").stdout
- File.open("/var/at/tabs/root") do |f|
- f.flock(File::LOCK_EX | File::LOCK_NB) or raise "couldn't lock"
- end
+ puts shell_out!("df -k", timeout: 10).stdout
shell_out!("echo '#foo' | crontab -u root -", timeout: 10)
new_resource.run_action(:create)
cron_should_exists(new_resource.name, new_resource.command)