2385b6e4e5
This is an internal fix, not user facing.
Currently the `LoggingJob` does not accept more than one argument. But there's [a few tests](f46d3452ae/activejob/test/cases/test_helper_test.rb (L518-L537)
) that call it with multiple arguments and assert that it is queued correctly. Those tests pass because the job is not performed, but if the job was performed, they'd fail.
This PR just fixes `LoggingJob` to accept a splat of arguments, and adds a test to ensure that it works correctly.
12 lines
195 B
Ruby
12 lines
195 B
Ruby
# frozen_string_literal: true
|
|
|
|
class LoggingJob < ActiveJob::Base
|
|
def perform(*dummy)
|
|
logger.info "Dummy, here is it: #{dummy.join(" ")}"
|
|
end
|
|
|
|
def job_id
|
|
"LOGGING-JOB-ID"
|
|
end
|
|
end
|