Skip to content

Instantly share code, notes, and snippets.

@gregoriokusowski
Created August 26, 2011 19:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gregoriokusowski/1174216 to your computer and use it in GitHub Desktop.
Save gregoriokusowski/1174216 to your computer and use it in GitHub Desktop.
Spork config with sqlite3 test database and selenium specs.
# 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