From a69df01b807d884fbf627769cf78e102a7f0d101 Mon Sep 17 00:00:00 2001 From: Muhammad Muhammad Ibrahim Date: Tue, 4 Feb 2020 04:06:54 +0200 Subject: [PATCH] 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 --- guides/source/testing.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/guides/source/testing.md b/guides/source/testing.md index 8a4a479508..1b9af789c9 100644 --- a/guides/source/testing.md +++ b/guides/source/testing.md @@ -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.