Sha256: 3a193cbd505ce300b2e0772079937e4b3212f9c9db135de4cdab52262dc66348
Contents?: true
Size: 724 Bytes
Versions: 14
Compression:
Stored size: 724 Bytes
Contents
require 'spec_helper' include SpecInfra::Helper::Fedora 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
14 entries across 14 versions & 1 rubygems