1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Update "Eagerly Requiring Helpers" section in testing docs [ci skip]

This will change the path for requiring helper files to be consistent
with previous examples in "Using Separate Files" section
This commit is contained in:
Muhammad Muhammad Ibrahim 2020-02-04 04:06:54 +02:00
parent b69382967e
commit a69df01b80

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.