test/helper.rb in sidetiq-0.4.0 vs test/helper.rb in sidetiq-0.4.1

- old
+ new

@@ -32,16 +32,16 @@ end class Sidekiq::Client # Sidekiq testing helper now overwrites raw_push so we need to use # raw_push_old below to keep tests as is. - # https://github.com/mperham/sidekiq/blob/v2.12.4/lib/sidekiq/client.rb#L39 + # https://github.com/mperham/sidekiq/blob/master/lib/sidekiq/testing.rb def self.push_old(item) normed = normalize_item(item) payload = process_single(item['class'], normed) pushed = false - pushed = raw_push_old([payload]) if payload + pushed = self.__send__(:raw_push_real, [payload]) if payload pushed ? payload['jid'] : nil end end class Sidetiq::TestCase < MiniTest::Test