From 9a918800c0bf37680bb97f2b9634a25b283971c2 Mon Sep 17 00:00:00 2001 From: "yuuji.yaginuma" Date: Wed, 28 Sep 2016 18:48:57 +0900 Subject: 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 --- guides/source/testing.md | 4 ++-- 1 file 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. -- cgit v1.2.3