diff options
author | Kevin Deisz <kevin.deisz@gmail.com> | 2015-04-26 13:05:08 -0400 |
---|---|---|
committer | Kevin Deisz <kevin.deisz@gmail.com> | 2015-05-05 10:30:16 -0400 |
commit | dd8e859829bfcfd8cb0287ce804055b827a35af1 (patch) | |
tree | 71a31b6996d3b81766ff33eddf2f2d995b02d6b7 /activejob/test/integration | |
parent | 918aa6e87813c5c7687e5d460c5cd62ba3919536 (diff) | |
download | rails-dd8e859829bfcfd8cb0287ce804055b827a35af1.tar.gz rails-dd8e859829bfcfd8cb0287ce804055b827a35af1.tar.bz2 rails-dd8e859829bfcfd8cb0287ce804055b827a35af1.zip |
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.
Diffstat (limited to 'activejob/test/integration')
-rw-r--r-- | activejob/test/integration/queuing_test.rb | 6 |
1 files changed, 6 insertions, 0 deletions
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 |