From dd8e859829bfcfd8cb0287ce804055b827a35af1 Mon Sep 17 00:00:00 2001 From: Kevin Deisz Date: Sun, 26 Apr 2015 13:05:08 -0400 Subject: Get provider_job_id from DelayedJob When queueing with DelayedJob, get the id of the job instance and report it back to ActiveJob as provider_job_id. --- activejob/test/integration/queuing_test.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'activejob/test') diff --git a/activejob/test/integration/queuing_test.rb b/activejob/test/integration/queuing_test.rb index 96794ffef3..403b803558 100644 --- a/activejob/test/integration/queuing_test.rb +++ b/activejob/test/integration/queuing_test.rb @@ -55,4 +55,10 @@ class QueuingTest < ActiveSupport::TestCase skip end end + + test 'should supply a provider_job_id to DelayedJob' do + skip unless adapter_is?(:delayed_job) + test_job = TestJob.perform_later @id + assert_kind_of Fixnum, test_job.provider_job_id + end end -- cgit v1.2.3