Created
August 26, 2011 19:28
-
-
Save gregoriokusowski/1174216 to your computer and use it in GitHub Desktop.
Spork config with sqlite3 test database and selenium specs.
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
# https://github.com/jnicklas/capybara/issues/450 | |
# hack | |
ActiveRecord::ConnectionAdapters::ConnectionPool.class_eval do | |
def current_connection_id | |
# Thread.current.object_id | |
Thread.main.object_id | |
end | |
end | |
# https://github.com/timcharper/spork/wiki/troubleshooting | |
# Gemfile | |
gem 'factory_girl_rails', :require => false | |
# spec_helper.rb | |
Spork.each_run { require 'factory_girl_rails' } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment