Skip to content

Commit

Permalink
Update "Eagerly Requiring Helpers" section in testing docs [ci skip]
Browse files Browse the repository at this point in the history
This will change the path for requiring helper files to be consistent
with previous examples in "Using Separate Files" section
  • Loading branch information
mibradev committed Feb 4, 2020
1 parent b693829 commit a69df01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion guides/source/testing.md
Expand Up @@ -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.
Expand Down

0 comments on commit a69df01

Please sign in to comment.