[rspec-users] [rspec]spec_server: already initialized constant MyTestClass
Matt Wynne
matt at mattwynne.net
Fri May 1 12:52:29 EDT 2009
On 1 May 2009, at 15:05, David Chelimsky wrote:
> On Fri, May 1, 2009 at 8:42 AM, Matt Wynne <matt.songkick at googlemail.com
> > wrote:
>> I'm creating a class in my spec file to test out a module, but when
>> I run
>> the spec a second time in spec_server, I get the error above.
>>
>> I presume this is because rails is un-loading the class, and it's not
>> getting re-loaded properly.
>>
>> Does anyone have a nice workaround for this?
>
> What version of rspec[-rails]?
oh don't... um.
rspec 1.2.2
rails 2.2.2
we know we need to upgrade but when you have 4798 examples it's not a
task you undertake lightly!
is that likely to be the problem?
>
>
>>
>> cheers,
>> Matt Wynne
>> http://beta.songkick.com
>> http://blog.mattwynne.net
>>
>>
>>
>> _______________________________________________
>> rspec-users mailing list
>> rspec-users at rubyforge.org
>> http://rubyforge.org/mailman/listinfo/rspec-users
>>
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users
Matt Wynne
http://blog.mattwynne.net
http://www.songkick.com
More information about the rspec-users
mailing list