mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
[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:
parent
12b32d8049
commit
919b50822f
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
||||
|
|
Loading…
Reference in a new issue