You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using any of the RSpec helper methods for delayed jobs (allow_to_delay_run, allow_to_delay_execute, expect_to_delay_run, expect_not_to_run_delayed, expect_to_not_run_delayed, and expect_to_delay_execute), a NoMethodError is thrown because ActiveInteraction::Extras::Rspec expects the interaction instance to respond to raw_inputs, but it does not. While there is an instance variable, @_interaction_raw_inputs, this is marked as private. Maybe we could inputs?
# Before
opts[:execute] ||= proc do |instance|
# call original queueing logic, so the argument serialisation is triggered
delayed_run.run(instance.raw_inputs)
end
# After
opts[:execute] ||= proc do |instance|
# call original queueing logic, so the argument serialisation is triggered
delayed_run.run(**instance.inputs.to_h)
end
The text was updated successfully, but these errors were encountered:
When using any of the RSpec helper methods for delayed jobs (
allow_to_delay_run
,allow_to_delay_execute
,expect_to_delay_run
,expect_not_to_run_delayed
,expect_to_not_run_delayed
, andexpect_to_delay_execute
), aNoMethodError
is thrown becauseActiveInteraction::Extras::Rspec
expects the interaction instance to respond toraw_inputs
, but it does not. While there is an instance variable,@_interaction_raw_inputs
, this is marked as private. Maybe we couldinputs
?The text was updated successfully, but these errors were encountered: