-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Labels
bugSomething isn't workingSomething isn't workinghelp wantedExtra attention is neededExtra attention is needed
Description
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
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinghelp wantedExtra attention is neededExtra attention is needed