Sha256: 8e2175800045c9c5cdafb84e9cc4a5ffcf360190456e8a90b8a57f1b7a022e42
Contents?: true
Size: 701 Bytes
Versions: 20
Compression:
Stored size: 701 Bytes
Contents
require 'spec_helper' RSpec.configure do |c| c.os = 'AIX' end 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
20 entries across 20 versions & 1 rubygems