Skip to content

Commit 92de92a

Browse files
authored
Merge pull request rails#53963 from pixeltrix/fix-bug-report-templates
Fix minor issues with bug report templates
2 parents abdbff5 + 8e0a391 commit 92de92a

File tree

5 files changed

+13
-0
lines changed

5 files changed

+13
-0
lines changed

guides/CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,11 @@
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+
6+
* Ensure all bug report templates set `config.secret_key_base` to avoid
7+
generation of `tmp/local_secret.txt` files when running the report template.
8+
9+
*Andrew White*
110

211
Please check [8-0-stable](https://github.com/rails/rails/blob/8-0-stable/guides/CHANGELOG.md) for previous changes.

guides/bug_report_templates/action_view.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ class TestApp < Rails::Application
1818
config.load_defaults Rails::VERSION::STRING.to_f
1919
config.eager_load = false
2020
config.logger = Logger.new($stdout)
21+
config.secret_key_base = "secret_key_base"
2122
end
2223
Rails.application.initialize!
2324

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

guides/bug_report_templates/active_record.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ class TestApp < Rails::Application
2222
config.load_defaults Rails::VERSION::STRING.to_f
2323
config.eager_load = false
2424
config.logger = Logger.new($stdout)
25+
config.secret_key_base = "secret_key_base"
2526
end
2627
Rails.application.initialize!
2728

guides/bug_report_templates/active_record_migrations.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ class TestApp < Rails::Application
2222
config.load_defaults Rails::VERSION::STRING.to_f
2323
config.eager_load = false
2424
config.logger = Logger.new($stdout)
25+
config.secret_key_base = "secret_key_base"
2526
end
2627
Rails.application.initialize!
2728

0 commit comments

Comments
 (0)