On Thu, Jun 28, 2012 at 2:11 PM, Dennis Kuczynski
wrote:
> In an ActiveRecord model, I have an after_commit callback (:enqueue_job)
> which places a job on my background processing queue (Sidekiq)
>
> To test that the callback was firing when the database transaction
> was committed, I was using:
In an ActiveRecord model, I have an after_commit callback (:enqueue_job)
which places a job on my background processing queue (Sidekiq)
To test that the callback was firing when the database transaction
was committed, I was using:
object.should_receive(:enqueue_job) #should pass
Which seems to w