aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/testing.md
diff options
context:
space:
mode:
Diffstat (limited to 'guides/source/testing.md')
-rw-r--r--guides/source/testing.md12
1 files changed, 2 insertions, 10 deletions
diff --git a/guides/source/testing.md b/guides/source/testing.md
index fe13c74745..3e12afc000 100644
--- a/guides/source/testing.md
+++ b/guides/source/testing.md
@@ -1014,17 +1014,9 @@ Testing helpers
In order to test helpers, all you need to do is check that the output of the
helper method matches what you'd expect. Tests related to the helpers are
-located under the `test/helpers` directory. Rails provides a generator which
-generates both the helper and the test file:
+located under the `test/helpers` directory.
-```bash
-$ bin/rails generate helper User
- create app/helpers/user_helper.rb
- invoke test_unit
- create test/helpers/user_helper_test.rb
-```
-
-The generated test file contains the following code:
+A helper test looks like so:
```ruby
require 'test_helper'