[rspec-users] spec_server not reloading model classes

Thibaud Guillaume-Gentil guillaumegentil at gmail.com
Fri May 1 04:14:52 EDT 2009

On Mar 30, 1:14 am, Andrew Vit <and... at avit.ca> wrote:
> It appears this is a bug, with an apparently simple fix in
> spec_server.rb (rails 2.3 compatibility):
> https://rspec.lighthouseapp.com/projects/5645/tickets/759
> However, now that it's reloading my app, it's not reloading the setup
> from my fixture/factory gems and throwing up a bunch of errors on re-
> run. (I've tried it with bothfactory_girland machinist now.) These
> are required in my spec_helper.rb:
> config.gem 'notahat-machinist', :lib => 'machinist', :source =>
> 'http://gems.github.com'
> require File.dirname(__FILE__) + '/blueprints'
> or:
> config.gem 'thoughtbot-factory_girl', :lib => 'factory_girl', :source
> => 'http://gems.github.com'
> # automatically loaded from spec/factories/*.rb
> Not sure where to look for a solution.

Same problem for me with factory_girl and rspec_rails 1.2.6, work fine
the first time but get a bunch of errors the second.

Any solution? Thanks

More information about the rspec-users mailing list