Skip to content

Commit 7b149f5

Browse files
solnicCopilot
andcommitted
fixup(active_job): update drain method for old rubies
Co-authored-by: Copilot <copilot@github.com>
1 parent 8e9e231 commit 7b149f5

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

sentry-rails/spec/active_job/support/harness.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ def reset_adapter(_adapter)
3232
def drain(at: nil)
3333
case adapter
3434
when :test
35-
perform_enqueued_jobs(at: at)
35+
kwargs = at ? { at: at } : {}
36+
perform_enqueued_jobs(**kwargs)
3637
else
3738
raise NotImplementedError, "active_job backend harness has no drain strategy for adapter: #{adapter.inspect}"
3839
end

0 commit comments

Comments
 (0)