Sha256: 2bfac82f21b4f479d84f765b5f836b628a546d702e91c0de4c62d7270625cb5b
Contents?: true
Size: 725 Bytes
Versions: 16
Compression:
Stored size: 725 Bytes
Contents
require 'spec_helper' include SpecInfra::Helper::FreeBSD describe cron do it { should have_entry '* * * * * /usr/local/bin/batch.sh' } its(:command) { should eq 'crontab -l | grep -v "#" -- | 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 -v "#" | 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
16 entries across 16 versions & 1 rubygems