[LRUG] A question on DRYness on testing methods that get / set state

Tim Cowlishaw tim at timcowlishaw.co.uk
Tue Nov 22 03:31:52 PST 2011


On Tue, Nov 22, 2011 at 11:29 AM, Tom Stuart <tom at experthuman.com> wrote:

> Spec behaviour, not implementation. I'd have a single example that covers the behaviour "when I put a value, get should return that value".

Aah ok, that makes far more sense - I've tended to tie my specs quite
closely to the interface being exposed in the past (ie, at least one
spec per public method per class), but I guess there's no real need
to.

Thanks!

Tim



More information about the Chat mailing list