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:
parent
36a6d935d2
commit
9082609a33
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue