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

Update "Eagerly Requiring Helpers" section in testing docs [ci skip]
This commit is contained in:
Ryuta Kamizono 2020-02-04 11:22:30 +09:00 committed by GitHub
commit a7104fa44c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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.