Testing class variables

I recently had a bug where a class variable was being initialised
wrongly:

@@var1 = nil, @@var2 = nil

instead of:

@@var1, @@var2 = nil

In investigating this, I realised that in a unit test, class variables
do not get “reloaded” between tests like everything else. Is there any
way to make them “reload” (I would have though given the nature of tests
that would be the default behaviour).

Many Thanks


Jonathan L.
http://turnipspatch.com/ | http://jonathanleighton.com/ |
http://digital-proof.org/