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:
parent
b69382967e
commit
a69df01b80
1 changed files with 1 additions and 1 deletions
|
@ -1443,7 +1443,7 @@ You may find it convenient to eagerly require helpers in `test_helper.rb` so you
|
||||||
|
|
||||||
```ruby
|
```ruby
|
||||||
# test/test_helper.rb
|
# 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.
|
This has the downside of increasing the boot-up time, as opposed to manually requiring only the necessary files in your individual tests.
|
||||||
|
|
Loading…
Reference in a new issue