From d5847f4cc01fc2fbea20a6fef5d45d4863476f4b Mon Sep 17 00:00:00 2001 From: Benjamin Klotz Date: Thu, 14 May 2015 17:59:55 +0200 Subject: Clarify view tests [ci skip] Mention that view tests are made in controller tests. --- guides/source/testing.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'guides/source/testing.md') 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`: -- cgit v1.2.3