From 2c8521a2e5047eb7550ac1d21cda061ceec08aa2 Mon Sep 17 00:00:00 2001 From: Andrew Kvalheim Date: Sun, 5 Apr 2020 07:59:29 -0700 Subject: [PATCH] Remove redundant code This functionality is provided by transactional_capybara. --- spec/support/kneet_connections.rb | 14 -------------- 1 file changed, 14 deletions(-) delete mode 100644 spec/support/kneet_connections.rb diff --git a/spec/support/kneet_connections.rb b/spec/support/kneet_connections.rb deleted file mode 100644 index 87f0bcd5..00000000 --- a/spec/support/kneet_connections.rb +++ /dev/null @@ -1,14 +0,0 @@ -# frozen_string_literal: true - -module ActiveRecord - class Base - mattr_accessor :shared_connection - @@shared_connection = nil - - def self.connection - @@shared_connection || retrieve_connection - end - end -end - -ActiveRecord::Base.shared_connection = ActiveRecord::Base.connection