aboutsummaryrefslogtreecommitdiffstats
path: root/activejob/CHANGELOG.md
diff options
context:
space:
mode:
authorYuji Yaginuma <yuuji.yaginuma@gmail.com>2017-02-01 06:37:16 +0900
committerArthur Nogueira Neves <github@arthurnn.com>2017-01-31 16:37:16 -0500
commit80dc309821732c68a6fb347230c99f2f6abf2f6f (patch)
treee1ff98a75d5e2251b1b350c42fac3e01e8a935c8 /activejob/CHANGELOG.md
parenta57b5292b0987c62d8567b253c9b54dc84b560d6 (diff)
downloadrails-80dc309821732c68a6fb347230c99f2f6abf2f6f.tar.gz
rails-80dc309821732c68a6fb347230c99f2f6abf2f6f.tar.bz2
rails-80dc309821732c68a6fb347230c99f2f6abf2f6f.zip
correctly set test adapter when configure the queue adapter on a per job (#26690)
The `ActiveJob::TestHelper` replace the adapter to test adapter in `before_setup`. It gets the target class using the `descendants`, but if the test target job class is not loaded, will not be a replacement of the adapter. Therefore, instead of replacing with `before_setup`, modified to replace when setting adapter. Fixes #26360
Diffstat (limited to 'activejob/CHANGELOG.md')
-rw-r--r--activejob/CHANGELOG.md6
1 files changed, 6 insertions, 0 deletions
diff --git a/activejob/CHANGELOG.md b/activejob/CHANGELOG.md
index 6f95553ee5..3bc34c1598 100644
--- a/activejob/CHANGELOG.md
+++ b/activejob/CHANGELOG.md
@@ -1,3 +1,9 @@
+* Correctly set test adapter when configure the queue adapter on a per job.
+
+ Fixes #26360.
+
+ *Yuji Yaginuma*
+
* Push skipped jobs to `enqueued_jobs` when using `perform_enqueued_jobs` with a `only` filter in tests
*Alexander Pauly*