These are chat archives for rails-sqlserver/activerecord-sqlserver-adapter

Mar 2016
Ryan Condron
Mar 22 2016 16:19
I am getting the error Attempt to initiate a new Adaptive Server operation with results pending using capybara's find function, has anyone come across this?
Ken Collins
Mar 22 2016 23:04
@rebelweb Sounds like a threading issue with your setup. Have you made sure your capybara tests run using a shared connection? See:
I use this with minitest and it works like a champ.
My Rails 4/5 setup does it this way.
class ActiveRecord::Base
def self.connection ; CONNECTION_LOCK.synchronize { @@shared_base_connection ||= retrieve_connection } ; end
Hope that helps.