aboutsummaryrefslogtreecommitdiffstats
path: root/activejob/test/support/que/inline.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activejob/test/support/que/inline.rb')
-rw-r--r--activejob/test/support/que/inline.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/activejob/test/support/que/inline.rb b/activejob/test/support/que/inline.rb
index 2e210acb6b..0232da1370 100644
--- a/activejob/test/support/que/inline.rb
+++ b/activejob/test/support/que/inline.rb
@@ -3,7 +3,11 @@ require 'que'
Que::Job.class_eval do
class << self; alias_method :original_enqueue, :enqueue; end
def self.enqueue(*args)
- args.pop if args.last.is_a?(Hash)
+ if args.last.is_a?(Hash)
+ options = args.pop
+ options.delete(:run_at)
+ args << options unless options.empty?
+ end
self.run(*args)
end
end