Sign in through GitHub

Please read for an updated status on RailsCasts:

Learn more or hide this

HannesBenson's Profile

GitHub User: HannesBenson

Comments by

Avatar

You can still use transactional fixtures if you do the following in your spec helper file:

ruby
ActiveRecord::ConnectionAdapters::ConnectionPool.class_eval do
  def current_connection_id
    # Thread.current.object_id
    Thread.main.object_id
  end
end

As per:

http://blog.yakitara.com/2011/03/use-transactionalfixtures-with-capybara.html