spec/rspec/sidekiq/helpers/retries_exhausted_spec.rb in rspec-sidekiq-1.1.0 vs spec/rspec/sidekiq/helpers/retries_exhausted_spec.rb in rspec-sidekiq-2.0.0.beta

- old
+ new

@@ -1,9 +1,9 @@ +# encoding: utf-8 require 'spec_helper' describe 'Retries Exhausted block' do - class FooClass < TestWorkerAlternative sidekiq_retries_exhausted do |msg| bar('hello') foo(msg) end @@ -18,10 +18,10 @@ it 'executes whatever is within the block' do FooClass.within_sidekiq_retries_exhausted_block { expect(FooClass).to receive(:bar).with('hello') } end it 'passes arguments to the block' do - args = {'args' => ['a', 'b']} + args = { 'args' => ['a', 'b']} FooClass.within_sidekiq_retries_exhausted_block(args) do expect(FooClass).to receive(:foo).with(FooClass.default_retries_exhausted_args.merge(args)) end end