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

Matt Wynne matt at mattwynne.net
Fri May 1 12:26:35 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 as it doesn't have its own file in the  
conventional place.

Does anyone have a nice workaround for this?

Matt Wynne

More information about the rspec-users mailing list