cucumber/cucumber-rails — pull request #181 by mpabst (2011-10-31 22:12:15+00:00)
Title: Turn off shared DB connection when not using transactional fixtures in JS env 

We had a problem where shared_connection would cause ActiveRecord to sometimes try and nest transactions because it maintains its own mapping of threads to DB connections (see def connection in [activerecord]/lib/active_record/connection_adapters/abstract/connection_pool.rb), so we just turned shared_connection off if use_transactional_fixtures is set to false. We wish we could offer a more comprehensive solution, but thought we'd offer this as better than nothing.