Created
October 24, 2011 16:17
-
-
Save daveworth/1309419 to your computer and use it in GitHub Desktop.
This file contains 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 | |
# This code will be run each time you run your specs. | |
`rake fuzzymatch:load_functions RAILS_ENV=test` | |
# reload classes for spork | |
ActiveSupport::Dependencies.clear | |
# re-instantiate observers | |
ActiveRecord::Base.instantiate_observers | |
# Reload FactoryGirl factories on each run | |
#FactoryGirl.factories.clear | |
#Dir[Rails.root.join("spec/factories/**/*.rb")].each { |f| require f } | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment