# File lib/spork/app_framework/rails.rb, line 81 def auto_reestablish_db_connection if Object.const_defined?(:ActiveRecord) Spork.each_run do # rails lib/test_help.rb is very aggressive about overriding RAILS_ENV and will switch it back to test after the cucumber env was loaded reset_rails_env ActiveRecord::Base.establish_connection end end end