In this chapter, we’ll look at the basic mechanics of a TDD cycle. Our starting point will be to create some business logic with our models because model logic is the easiest part of a Rails application to test.
Get hands-on with 1400+ tech skills courses.