Skip to content

Instantly share code, notes, and snippets.

@daveworth
Created October 24, 2011 16:17
Show Gist options
  • Save daveworth/1309419 to your computer and use it in GitHub Desktop.
Save daveworth/1309419 to your computer and use it in GitHub Desktop.
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