[LRUG] Parameterising a Rails 3 controller mixin
Andrew Stewart
boss at airbladesoftware.com
Tue Oct 4 06:53:23 PDT 2011
On 4 Oct 2011, at 14:48, Graham Ashton wrote:
> Why do you need to test the bar case at all? It sounds like you can successfully test that it works with foo. Why would bar fail? If you can't imagine a failure mode, then there's no need (and from what I've understood, I can't see how it could break).
bar could fail if I had messed up my implementation somewhere, e.g. leaving a hard-coded foo lying around.
-- Andy
More information about the Chat
mailing list