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

Clarify view tests [ci skip]

Mention that view tests are made in controller tests.
This commit is contained in:
Benjamin Klotz 2015-05-14 17:59:55 +02:00 committed by Benny Klotz
parent 864a41bc04
commit d5847f4cc0

View file

@ -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`: