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.

Get hands-on with 1200+ tech skills courses.