Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
b32669f6
Commit
b32669f6
authored
Feb 22, 2022
by
Thong Kuah
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Delete un-used file
The method run_with_new_database_connection does not seem used anymore
parent
a2964e3d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
13 deletions
+0
-13
spec/services/groups/destroy_service_spec.rb
spec/services/groups/destroy_service_spec.rb
+0
-2
spec/support/helpers/database_connection_helpers.rb
spec/support/helpers/database_connection_helpers.rb
+0
-11
No files found.
spec/services/groups/destroy_service_spec.rb
View file @
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
)
}
...
...
spec/support/helpers/database_connection_helpers.rb
deleted
100644 → 0
View file @
a2964e3d
# 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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment