From c8e510d1af276798e7f16e74a2cffaeaef4579fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Daniel?= Date: Thu, 28 Feb 2013 17:55:52 -0300 Subject: [PATCH 1/2] return array position in testing push --- lib/sidekiq/testing.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sidekiq/testing.rb b/lib/sidekiq/testing.rb index fe1b14ae..b1d7ec35 100644 --- a/lib/sidekiq/testing.rb +++ b/lib/sidekiq/testing.rb @@ -60,7 +60,7 @@ module Sidekiq def client_push(opts) jobs << opts - true + jobs.size-1 end # Jobs queued for this worker From 8dd3660646a90f41ef2cfcac485119260e9c9e64 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Daniel?= Date: Thu, 28 Feb 2013 18:42:08 -0300 Subject: [PATCH 2/2] fixing return for client_push in testing --- lib/sidekiq/testing.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sidekiq/testing.rb b/lib/sidekiq/testing.rb index b1d7ec35..d499f31b 100644 --- a/lib/sidekiq/testing.rb +++ b/lib/sidekiq/testing.rb @@ -60,7 +60,7 @@ module Sidekiq def client_push(opts) jobs << opts - jobs.size-1 + opts.object_id end # Jobs queued for this worker