aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/testing.md
diff options
context:
space:
mode:
authorBenjamin Klotz <benny.klotz92@gmail.com>2015-05-14 17:59:55 +0200
committerBenny Klotz <benny.klotz92@gmail.com>2015-05-14 18:05:21 +0200
commitd5847f4cc01fc2fbea20a6fef5d45d4863476f4b (patch)
treecbfea7e4c30a3158982ea222e883ca12589626d3 /guides/source/testing.md
parent864a41bc0463e94b6e0c61d4d8d86043e6d0a64f (diff)
downloadrails-d5847f4cc01fc2fbea20a6fef5d45d4863476f4b.tar.gz
rails-d5847f4cc01fc2fbea20a6fef5d45d4863476f4b.tar.bz2
rails-d5847f4cc01fc2fbea20a6fef5d45d4863476f4b.zip
Clarify view tests [ci skip]
Mention that view tests are made in controller tests.
Diffstat (limited to 'guides/source/testing.md')
-rw-r--r--guides/source/testing.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/source/testing.md b/guides/source/testing.md
index 8278bdcd5d..556c043391 100644
--- a/guides/source/testing.md
+++ b/guides/source/testing.md
@@ -898,7 +898,7 @@ For more information on routing assertions available in Rails, see the API docum
Testing Views
-------------
-Testing the response to your request by asserting the presence of key HTML elements and their content is a common way to test the views of your application. The `assert_select` method allows you to query HTML elements of the response by using a simple yet powerful syntax.
+Testing the response to your request by asserting the presence of key HTML elements and their content is a common way to test the views of your application. Like route tests, view tests reside in `test/controllers/` or are part of controller tests. The `assert_select` method allows you to query HTML elements of the response by using a simple yet powerful syntax.
There are two forms of `assert_select`: