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
e34dd1e6
Commit
e34dd1e6
authored
Sep 09, 2021
by
Andreas Brandl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tidy up specs
parent
f4d7293c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
5 deletions
+0
-5
spec/lib/gitlab/database/migration_helpers/v2_spec.rb
spec/lib/gitlab/database/migration_helpers/v2_spec.rb
+0
-3
spec/lib/gitlab/database/migration_helpers_spec.rb
spec/lib/gitlab/database/migration_helpers_spec.rb
+0
-2
No files found.
spec/lib/gitlab/database/migration_helpers/v2_spec.rb
View file @
e34dd1e6
...
@@ -237,8 +237,6 @@ RSpec.describe Gitlab::Database::MigrationHelpers::V2 do
...
@@ -237,8 +237,6 @@ RSpec.describe Gitlab::Database::MigrationHelpers::V2 do
expect
(
buffer
.
read
).
to
include
(
"
\"
class
\"
:
\"
#{
model
.
class
}
\"
"
)
expect
(
buffer
.
read
).
to
include
(
"
\"
class
\"
:
\"
#{
model
.
class
}
\"
"
)
end
end
using
RSpec
::
Parameterized
::
TableSyntax
where
(
raise_on_exhaustion:
[
true
,
false
])
where
(
raise_on_exhaustion:
[
true
,
false
])
with_them
do
with_them
do
...
@@ -261,7 +259,6 @@ RSpec.describe Gitlab::Database::MigrationHelpers::V2 do
...
@@ -261,7 +259,6 @@ RSpec.describe Gitlab::Database::MigrationHelpers::V2 do
it
'defaults to disallowing subtransactions'
do
it
'defaults to disallowing subtransactions'
do
with_lock_retries
=
double
with_lock_retries
=
double
expect
(
Gitlab
::
Database
::
WithLockRetries
).
to
receive
(
:new
).
with
(
hash_including
(
allow_savepoints:
false
)).
and_return
(
with_lock_retries
)
expect
(
Gitlab
::
Database
::
WithLockRetries
).
to
receive
(
:new
).
with
(
hash_including
(
allow_savepoints:
false
)).
and_return
(
with_lock_retries
)
expect
(
with_lock_retries
).
to
receive
(
:run
).
with
(
raise_on_exhaustion:
false
)
expect
(
with_lock_retries
).
to
receive
(
:run
).
with
(
raise_on_exhaustion:
false
)
...
...
spec/lib/gitlab/database/migration_helpers_spec.rb
View file @
e34dd1e6
...
@@ -2310,8 +2310,6 @@ RSpec.describe Gitlab::Database::MigrationHelpers do
...
@@ -2310,8 +2310,6 @@ RSpec.describe Gitlab::Database::MigrationHelpers do
expect
(
buffer
.
read
).
to
include
(
"
\"
class
\"
:
\"
#{
model
.
class
}
\"
"
)
expect
(
buffer
.
read
).
to
include
(
"
\"
class
\"
:
\"
#{
model
.
class
}
\"
"
)
end
end
using
RSpec
::
Parameterized
::
TableSyntax
where
(
raise_on_exhaustion:
[
true
,
false
])
where
(
raise_on_exhaustion:
[
true
,
false
])
with_them
do
with_them
do
...
...
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