Created
April 10, 2011 18:43
-
-
Save stephanschubert/912605 to your computer and use it in GitHub Desktop.
Fix the reloading issue when using Spork with Mongoid and/or Devise
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. | |
load "#{Rails.root}/config/routes.rb" | |
Dir["#{Rails.root}/app/**/*.rb"].each { |f| load f } | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment