Unit Tests
Learn to use unit tests to catch errors during development.
We'll cover the following...
We will use the Minitest test framework which is included with Rails by default. Minitest is based on Fixtures which allow us to fill our database with predefined data. Fixtures are defined in YAML
files in the tests/fixtures
folder. There is one file per template.
Add tests for the User
model
We must, therefore, start ...