19 lines
609 B
Ruby
19 lines
609 B
Ruby
|
require 'spec_helper'
|
||
|
|
||
|
describe Sidekiq::Cron::Job do
|
||
|
describe 'cron jobs' do
|
||
|
context 'when rufus-scheduler depends on ZoTime or EoTime' do
|
||
|
before do
|
||
|
described_class
|
||
|
.create(name: 'TestCronWorker',
|
||
|
cron: Settings.cron_jobs[:pipeline_schedule_worker]['cron'],
|
||
|
class: Settings.cron_jobs[:pipeline_schedule_worker]['job_class'])
|
||
|
end
|
||
|
|
||
|
it 'does not get "Rufus::Scheduler::ZoTime/EtOrbi::EoTime into an exact number"' do
|
||
|
expect { described_class.all.first.should_enque?(Time.now) }.not_to raise_error
|
||
|
end
|
||
|
end
|
||
|
end
|
||
|
end
|