Sha256: ea217720b4d3d6cf66611e0560a4db1f341e4d95d1bde7fc4d0c733da3c628c1
Contents?: true
Size: 349 Bytes
Versions: 2
Compression:
Stored size: 349 Bytes
Contents
require 'resque_spec' module ResqueSpec def schedule_for(klass) name = "#{queue_name(klass)}_scheduled" queues[name] end module SchedulerExt def enqueue_at(time, klass, *args) ResqueSpec.schedule_for(klass) << {:klass => klass.to_s, :time => time, :args => args} end end end Resque.extend(ResqueSpec::SchedulerExt)
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
resque_spec-0.6.1 | lib/resque_spec/scheduler.rb |
resque_spec-0.6.0 | lib/resque_spec/scheduler.rb |