Skip to content

Instantly share code, notes, and snippets.

@grosser
Created Jan 14, 2012
Embed
What would you like to do?
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