Sha256: de9d9fcf47df24f70399b41a2361eaa89c099bb9ba62b8e883702543f996219f
Contents?: true
Size: 692 Bytes
Versions: 26
Compression:
Stored size: 692 Bytes
Contents
require 'spec_helper' include SpecInfra::Helper::Plamo describe cron do it { should have_entry '* * * * * /usr/local/bin/batch.sh' } its(:command) { should eq 'crontab -l | grep -- \\\\\\*\\ \\\\\\*\\ \\\\\\*\\ \\\\\\*\\ \\\\\\*\\ /usr/local/bin/batch.sh' } end describe cron do it { should_not have_entry 'invalid entry' } end describe cron do it { should have_entry('* * * * * /usr/local/bin/batch.sh').with_user('root') } its(:command) { should eq 'crontab -u root -l | grep -- \\\\\\*\\ \\\\\\*\\ \\\\\\*\\ \\\\\\*\\ \\\\\\*\\ /usr/local/bin/batch.sh' } end describe cron do it { should_not have_entry('* * * * * /usr/local/bin/batch.sh').with_user('invalid-user') } end
Version data entries
26 entries across 26 versions & 1 rubygems