aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoryuuji.yaginuma <yuuji.yaginuma@gmail.com>2016-09-28 18:48:57 +0900
committeryuuji.yaginuma <yuuji.yaginuma@gmail.com>2016-09-28 18:59:17 +0900
commit9a918800c0bf37680bb97f2b9634a25b283971c2 (patch)
treef55997911a031fb9609d2328a40d441c2c4ff8b3
parentc994a893c18c0456fd2a30efe4debfc2b18e2508 (diff)
downloadrails-9a918800c0bf37680bb97f2b9634a25b283971c2.tar.gz
rails-9a918800c0bf37680bb97f2b9634a25b283971c2.tar.bz2
rails-9a918800c0bf37680bb97f2b9634a25b283971c2.zip
update description of queue adapter in test [ci skip]
`ActiveJob::TestCase` set `TestAdapter` to queue adapter at `before_setup`. https://github.com/rails/rails/blob/master/activejob/lib/active_job/test_helper.rb#L12..L21
-rw-r--r--guides/source/testing.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/guides/source/testing.md b/guides/source/testing.md
index 98847fde18..0ac5121b12 100644
--- a/guides/source/testing.md
+++ b/guides/source/testing.md
@@ -1317,8 +1317,8 @@ end
This test is pretty simple and only asserts that the job get the work done
as expected.
-By default, `ActiveJob::TestCase` will set the queue adapter to `:async` so that
-your jobs are performed in an async fashion. It will also ensure that all previously performed
+By default, `ActiveJob::TestCase` will set the queue adapter to `:test` so that
+your jobs are performed inline. It will also ensure that all previously performed
and enqueued jobs are cleared before any test run so you can safely assume that
no jobs have already been executed in the scope of each test.