Search⌘ K
AI Features

Who Controls the Controllers?

Understand how controllers operate within Rails applications using test-driven development. Learn why traditional controller tests might be redundant, how business logic is separated, and methods to handle errors at the unit test level for more efficient testing.

All of the new tests pass, so let’s take stock of what we have so far. We still have one test pending: our end-to-end test still doesn’t like that the create action ...