Example Ruby on Rails application developed using Test-Driven Development (TDD).
The application is a very simple contact management solution, showing a list of contacts with their names and ages.
Tests are written in RSpec and include:
- Model tests (documentation)
- Controller tests (documentation)
- View tests (documentation)
- Feature tests (documentation)
- Writing model tests
- Making model tests pass
- Writing controller tests
- Making controller tests pass
- Writing view tests
- Making view tests pass (this also completes the feature)
- Everything from start to finish
Special thanks to Christoph Matthies for creating the TDD example.