Learn how to test-drive your Rails application from scratch. This course covers everything you need to start your TDD journey: you'll learn the main principles behind test-driven development, and you'll see how to write acceptance, controller, and model specs. You'll also learn how to use Factory Girl gem to prepare data for your specs and how to test most common cases in web development. By the end of this course, you'll see how all these parts come together while we test-drive features for real Rails applications.
Overview
Learn how to test-drive your Rails application from scratch. This course covers everything you need to start your TDD journey: you'll learn the main principles behind test-driven development, and you'll see how to write acceptance, controller, and model specs. You'll also learn how to use Factory Girl gem to prepare data for your specs and how to test most common cases in web development. By the end of this course, you'll see how all these parts come together while we test-drive features for real Rails applications.
Syllabus
- Introduction 3mins
- TDD 101 51mins
- Acceptance Tests 51mins
- Controllers Tests 49mins
- Models Tests 21mins
- Testing in Isolation 34mins
- Testing Other Cases 33mins
- Test-drive Complete Feature 30mins
- Closing Thoughts 1min
Taught by
Rem Zolotykh