Skip to content

Commit

Permalink
Merge pull request rails#38381 from mibradev/eagerly-requiring-helper…
Browse files Browse the repository at this point in the history
…s-docs

Update "Eagerly Requiring Helpers" section in testing docs [ci skip]
  • Loading branch information
kamipo authored Feb 4, 2020
2 parents b693829 + a69df01 commit a7104fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion guides/source/testing.md
Original file line number Diff line number Diff line change
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 a7104fa

Please sign in to comment.