-
-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add configuration to disable ActiveJob job signature matching check #2801
Comments
I agree with you. FYI: My workaround is |
Sorry to hear the signature-match check is causing issues for you both – adding an escape hatch sounds reasonable. FWIW one can also store arbitrary data on an ActiveJob job by overriding So in the example above you'd override |
Overriding Given this is an edge cases and there are documented workaround in this ticket, I think we can close this. |
I'm leaving this open because I think this should respect the existing configuration for verifying doubles, we should check to see if we should verify arguments. |
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
I've taken a first pass at this over in #2808. If |
Is your feature request related to a problem? Please describe.
The 7.0 version of RSpec Rails introduced #2745 by @odlp which is overall a great addition, but doesn't provide a configuration to disable this check.
This is a problem for one of our app that uses
before_enqueue
andaround_perform
callbacks that modifies the arguments passed to the job.Describe the solution you'd like
I would like a way to disable this check.
Describe alternatives you've considered
I'm not sure there are other solutions short of updating all the jobs in our app.
Additional context
Here are the callbacks being used:
The text was updated successfully, but these errors were encountered: