Commit 5b373eb5 authored by Douglas Barbosa Alexandre's avatar Douglas Barbosa Alexandre

Merge branch 'delete_spec_database_connection_helpers' into 'master'

Delete un-used spec file

See merge request gitlab-org/gitlab!81228
parents 98fa61ef b32669f6
......@@ -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