Writing Tests
Automated testing is a powerful tool that every developer should master. By writing tests that verify your code works as expected, you can reduce the number of unexpected bugs that make your app fail. Writing these tests also helps ensure you don’t break some other part of your app while building a new feature.
5 videos • 4 quizzes • 1 code challenge
-
Play
Preview
Introducing the Project
0 minutes 26 seconds
-
Play
Preview
Validating Presence
7 minutes 54 seconds
-
ABC
Preview
Quiz: Validate Presence
8 questions
-
Play
Preview
Validating Uniqueness
3 minutes 32 seconds
-
ABC
Preview
Quiz: Validates Uniqueness
7 questions
-
Play
Preview
Fixtures
2 minutes 56 seconds
-
ABC
Preview
Quiz: Fixtures
8 questions
-
Play
Preview
Validating Format
4 minutes 57 seconds
-
ABC
Preview
Quiz: Validating Format
8 questions
-
Code Challenge
Preview
Code Challenge: Validations
1 objective
Write More Tests!
We've only begun to test some of the behavior for the system. Why not try writing writing some of your own methods on the user and status models and then write tests for some of those methods.