Install the following Gems (if not installed):
FactoryGirl - we use it for quick building and creating instances of objects
Shoulda - great helpers which speed up writing simple and iterative tests, for example, testing model validations
Write functional tests to check controller actions, filters, redirects, view rendering, and the like.
Functional tests also help us to approximately check for errors in our view files. If we have an error inside a view file, the controller test using that view file will fail while rendering it, and we'll easily find the source of the error.
Install the following Gems (if not installed): FactoryGirl - we use it for quick building and creating instances of objects Shoulda - great helpers which speed up writing simple and iterative tests, for example, testing model validations
Write functional tests to check controller actions, filters, redirects, view rendering, and the like.
Functional tests also help us to approximately check for errors in our view files. If we have an error inside a view file, the controller test using that view file will fail while rendering it, and we'll easily find the source of the error.