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

Mark Wilden mark at mwilden.com
Thu Apr 16 14:04:21 EDT 2009


On Thu, Apr 16, 2009 at 10:23 AM, Pat Maddox <pat.maddox at gmail.com> wrote:
> 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.

Sorry I misunderstood you - the perils of relative pronouns. :)

///ark


More information about the rspec-users mailing list