[ci skip] Recommend testing information displayed over object stored

Since `assigns` is not placed by default with Rails, we suggested to
test if the right information was displayed instead of suggesting to
test if the right object was stored in the template.
This commit is contained in:
Kadu Ribeiro 2018-09-10 10:28:03 -03:00 committed by Carlos Ribeiro
parent 12b32d8049
commit 919b50822f

@ -1028,8 +1028,8 @@ You should test for things such as:
* was the web request successful?
* was the user redirected to the right page?
* was the user successfully authenticated?
* was the correct object stored in the response template?
* was the appropriate message displayed to the user in the view?
* was the correct information displayed in the response?
The easiest way to see functional tests in action is to generate a controller using the scaffold generator: