Skip to content

Instantly share code, notes, and snippets.

@gregoriokusowski
Created August 26, 2011 19:28
Show Gist options
  • 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