diff --git a/contrib/ruby_event_store-sidekiq_scheduler/spec/async_handler_helpers_spec.rb b/contrib/ruby_event_store-sidekiq_scheduler/spec/async_handler_helpers_spec.rb index ff2fb1cfd6..8d722fb58b 100644 --- a/contrib/ruby_event_store-sidekiq_scheduler/spec/async_handler_helpers_spec.rb +++ b/contrib/ruby_event_store-sidekiq_scheduler/spec/async_handler_helpers_spec.rb @@ -26,7 +26,7 @@ def perform(event) SidekiqHandlerWithHelper.prepend( RailsEventStore::AsyncHandler.with( - event_store: event_store, + event_store_locator: ->{ event_store }, serializer: serializer ) ) diff --git a/rails_event_store/spec/async_handler_helpers_spec.rb b/rails_event_store/spec/async_handler_helpers_spec.rb index c3b70f259d..c532d3adc4 100644 --- a/rails_event_store/spec/async_handler_helpers_spec.rb +++ b/rails_event_store/spec/async_handler_helpers_spec.rb @@ -183,7 +183,7 @@ def perform(event) specify "ActiveJob with AsyncHandlerJobIdOnly prepended with event store locator" do HandlerE = Class.new(IdOnlyHandler) - HandlerE.prepend AsyncHandlerJobIdOnly.with(event_store: nil, event_store_locator: -> { event_store }) + HandlerE.prepend AsyncHandlerJobIdOnly.with(event_store_locator: -> { event_store }) event_store.subscribe_to_all_events(HandlerE) event_store.publish(ev = RubyEventStore::Event.new)