[rspec-users] [rspec]spec_server: already initialized constant MyTestClass

Matt Wynne matt.songkick at googlemail.com
Fri May 1 09:42:42 EDT 2009


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?

cheers,
Matt Wynne
http://beta.songkick.com
http://blog.mattwynne.net





More information about the rspec-users mailing list