Introduction to Testing
An introduction to testing, the Rails test structure and how to run Rails tests.
We'll cover the following...
What is testing?
Testing is a process used to ensure that your application runs according to your requirements. For your web application, testing can include things such as checking for invalid redirects, validations on your form fields, data integrity, etc.
Rails test structure
Whenever you create a new project using rails new
, a test
folder is automatically created for you. The structure of the folder is ...