Skip to content

Instantly share code, notes, and snippets.

@grosser
Created January 14, 2012 01:35
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 grosser/1609781 to your computer and use it in GitHub Desktop.
Save grosser/1609781 to your computer and use it in GitHub Desktop.
Transactional fixtures with capybara javascript tests
ActiveRecord::ConnectionAdapters::ConnectionPool.class_eval do
def current_connection_id
# Thread.current.object_id
Thread.main.object_id
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment