Created
January 2, 2012 20:45
-
-
Save joemsak/1552028 to your computer and use it in GitHub Desktop.
Reload changes in models during tests
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
config.cache_classes = !(ENV['DRB'] == 'true') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Spork.each_run do | |
ActiveSupport::Dependencies.clear | |
ActiveRecord::Base.instantiate_observers | |
FactoryGirl.reload | |
end if Spork.using_spork? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment