To view this screencast, add it to
your cart
and
checkout.
You can buy this screencast for any price, including FREE!
Click here to see the series overview
In Part 1, we left off with 2 really simple integration specs (inotherwords, they test the full stack by running against a running website).
Typically, you want to have a small number of integration specs and a large number of model specs to test that your models/entities/business objects/whatever all behave as expected!
TDD MVC - Part 3
In this episode, we:
- Make Dog require a name (with integration & model specs)
- Add a silly custom validation, to show how to make one
- Make Dog require a unique name
- Add abunchof extra fields that Dog requires (to make it more realistic)
And, ofcourse, we test-drive everything :)