未验证 提交 a7104fa4 编写于 作者: R Ryuta Kamizono 提交者: GitHub

Merge pull request #38381 from mibradev/eagerly-requiring-helpers-docs

Update "Eagerly Requiring Helpers" section in testing docs [ci skip]
......@@ -1443,7 +1443,7 @@ You may find it convenient to eagerly require helpers in `test_helper.rb` so you
```ruby
# test/test_helper.rb
Dir[Rails.root.join('lib', 'test', '**', '*.rb')].each { |file| require file }
Dir[Rails.root.join('test', 'test_helpers', '**', '*.rb')].each { |file| require file }
```
This has the downside of increasing the boot-up time, as opposed to manually requiring only the necessary files in your individual tests.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册