Skip to content

Commit 8e0a391

Browse files
committed
Set the queue adapter to :test in the bug report template
The assert_enqueued_with method requires this to be enabled for it to pass.
1 parent f17f2d1 commit 8e0a391

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

guides/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
* In the Active Job bug report template set the queue adapter to the
2+
test adapter so that `assert_enqueued_with` can pass.
3+
4+
*Andrew White*
5+
16
* Ensure all bug report templates set `config.secret_key_base` to avoid
27
generation of `tmp/local_secret.txt` files when running the report template.
38

guides/bug_report_templates/active_job.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ class TestApp < Rails::Application
1717
config.load_defaults Rails::VERSION::STRING.to_f
1818
config.eager_load = false
1919
config.secret_key_base = "secret_key_base"
20+
config.active_job.queue_adapter = :test
2021

2122
config.logger = Logger.new($stdout)
2223
end

0 commit comments

Comments
 (0)