Thought I'd write down my experiences with trying to design a feature (for a Rails app) in a way so that it's as unit-testable as possible.
The feature is a page to show statistics based on date constraints.
Names below are different from the actual feature.
Call chain:
View/Form -> Controller -> Filter
-> Stats -> Query