On Thu, Apr 16, 2009 at 7:33 AM, Pat Maddox <[email protected]> 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.

///ark
_______________________________________________
rspec-users mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to