Just add: ActiveSupport::Dependencies. Clear to the end of the prefork block. This will take care of clearing the models.
Also, you want to move that rspec configure inclusions to Spork. Each_run, same goes with requiring spec support and shared files. This works, I use this setup in 2 projects w/o any troubles.
1 Wait, so does ActiveSupport::Dependencies. Clear belong in prefork or each_run? I've seen conflicting stories.
Neither seems to work for me, both causing loading issues: "expected xxxx to define xxxx. " Also, is it ActiveSupport::Dependencies. Clear alone that solves the problem?
Or is that needed in conjunction with the each_run example in the original question? – Aaron Gibralter Nov 14 at 15:20 I don't know why, but my project just suddenly started doing this, for no apparent reason. I ended up putting the Dependencies.
Clear in my Spork. Each_run, and it worked for me. I don't have my Rspec.
Config in each_run, just: FactoryGirl. Reload and ActiveSupport::Dependencies.clear. Hope that helps.
– Dave Sanders Nov 29 at 18:58 ActiveSupport::Dependencies. Clear should be added at the end of the prefork, not each_run – Ran Dec 1 at 9:48.
In addition to setting config. Cache_classes = false in config/environments/test. Rb, the following seems to make DataMapper and Spork play nicely for our team.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.