Module: ResqueSpec::ResqueScheduler

Defined in:
lib/resque_spec/resque_scheduler_spec.rb

Instance Method Summary collapse

Instance Method Details

#enqueue_at(time, klass, *args) ⇒ Object



19
20
21
# File 'lib/resque_spec/resque_scheduler_spec.rb', line 19

def enqueue_at(time, klass, *args)
  ResqueSpec.schedule_for(klass) << {:klass => klass, :time  => time, :args => args}
end