[rspec-users] Testing discovered a problem in my code

Mark Wilden mark at mwilden.com
Thu Apr 16 12:15:55 EDT 2009

On Thu, Apr 16, 2009 at 7:33 AM, Pat Maddox <pat.maddox at gmail.com> wrote:

> You're setting an instance variable on a class, which is a global
> variable

I wouldn't call a class instance variable global. It's accessible to
only one object, after all.

> and is not garbage collected. The state you set is maintained
> across runs, screwing things up.

But that's a good point.


More information about the rspec-users mailing list