Commit b32669f6 authored by Thong Kuah's avatar Thong Kuah

Delete un-used file

The method
run_with_new_database_connection
does not seem used anymore
parent a2964e3d
......@@ -3,8 +3,6 @@
require 'spec_helper'
RSpec.describe Groups::DestroyService do
include DatabaseConnectionHelpers
let!(:user) { create(:user) }
let!(:group) { create(:group) }
let!(:nested_group) { create(:group, parent: group) }
......
# frozen_string_literal: true
module DatabaseConnectionHelpers
def run_with_new_database_connection
pool = ActiveRecord::Base.connection_pool
conn = pool.checkout
yield conn
ensure
pool.checkin(conn)
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment