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

Pat Maddox pat.maddox at gmail.com
Thu Apr 16 13:23:41 EDT 2009


On Thursday, April 16, 2009, Mark Wilden <mark at mwilden.com> wrote:
> 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.

Neither would I :)  A class, being referenced by a constant, is a
global variable.

Pat


More information about the rspec-users mailing list