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

Fix test guides for test helpers

`lib` isn't autoloaded in most applications and I wouldn't recomment
storing test helpers there even if it was.

This was brought up in #38343. I think the original author meant to
write `test/lib`. I updated the docs to say to use either `test/lib` or
`test/test_helpers` (personally I prefer the latter).
This commit is contained in:
eileencodes 2020-01-29 08:23:22 -05:00
parent 36a6d935d2
commit 9082609a33
No known key found for this signature in database
GPG key ID: BA5C575120BBE8DF

View file

@ -1399,7 +1399,8 @@ end
#### Using Separate Files
If you find your helpers are cluttering `test_helper.rb`, you can extract them into separate files. One good place to store them is `lib/test`.
If you find your helpers are cluttering `test_helper.rb`, you can extract them into separate files.
One good place to store them is `test/lib` or `test/test_helpers`.
```ruby
# lib/test/multiple_assertions.rb