jrusso1020 / Paircon

project for CS5150 at Cornell University done for Kilian Weinberger
Other
0 stars 0 forks source link

Add Functional Tests For Rails Controllers, Views, Redirects #227

Open MutahirKazmi opened 6 years ago

MutahirKazmi commented 6 years ago

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.