[LRUG] Parameterising a Rails 3 controller mixin

Graham Ashton graham at effectif.com
Tue Oct 4 05:48:04 PDT 2011


On 4 Oct 2011, at 13:27, Andrew Stewart wrote:

> This appears to work when I use it in a Rails app, but I can't test the 'bar' case in the engine's gem because the Rails app has already initialised with the default value 'foo' before my test's setup method can set it to 'bar'.

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).


More information about the Chat mailing list