The short question: Can someone post their spec_helper they are using with spork on Rails 3.2.11 (after verifying via spork -d that the models and controllers are not being loaded in the prefork)?
The long blabby question: This is about Spork, Rails 3.2.11, and rspec set up. It isn't really an rspec question but the spork google group seems to be dead (my membership is pending it says). I see a lot of internet traffic on this but I guess things changed somewhere along Rails 3.2.3? On Rails 3.2.8 and now 3.2.11, spork -d tells me (correctly) that my models and controllers are being loaded in prefork via MyApp::Application.initialize! line in environment.rb I have config.cache_classes set to true for test (the same as production -- false in development). I found one chap who loads application.rb instead of environment.rb in prefork and then does the MyApp::Application.initialize! in each run [1]. Another alternative is to try the new kid on the block called "spring"[2] but it may be too soon for this. On the flip side, spork now has 100+ issues opened against it. This may be a place where no one really has a good answer right this moment because too many things are in flux -- which is cool. I'll just muddle through it if that is the case. Thank you, Perry [1] http://joeybeninghove.com/2011/08/10/doubling-speed-of-specs-with-spork-when-using-mongoid-inheritance-and-preloading/ [2] https://github.com/jonleighton/spring -- You received this message because you are subscribed to the Google Groups "rspec" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
