spec/models/concerns/publishable_spec.rb in reactor-0.14.0 vs spec/models/concerns/publishable_spec.rb in reactor-0.15.0
- old
+ new
@@ -116,10 +116,10 @@
it 'does not call the subscriber when if is set to false' do
publisher.we_want_it = false
publisher.start_at = 3.days.from_now
publisher.save!
- expect{ Reactor::Event.perform(@job_args[0], @job_args[1]) }.to_not change{ Sidekiq::Extensions::DelayedClass.jobs.size }
+ expect{ Reactor::Event.perform(@job_args[0], @job_args[1]) }.to_not change{ Sidekiq::Queues.jobs_by_queue.values.flatten.count }
end
it 'keeps the if intact when rescheduling' do
old_start_at = publisher.start_at
publisher.start_at = 3.day.from_now