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
80827148
Commit
80827148
authored
Sep 29, 2020
by
Douglas Barbosa Alexandre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Ruby 2.7 keyword parameter deprecations
Part of
https://gitlab.com/gitlab-org/gitlab/-/issues/257438
parent
025a27b1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
ee/spec/services/geo/replication_toggle_request_service_spec.rb
...c/services/geo/replication_toggle_request_service_spec.rb
+2
-2
No files found.
ee/spec/services/geo/replication_toggle_request_service_spec.rb
View file @
80827148
...
@@ -22,7 +22,7 @@ RSpec.describe Geo::ReplicationToggleRequestService, :geo do
...
@@ -22,7 +22,7 @@ RSpec.describe Geo::ReplicationToggleRequestService, :geo do
allow
(
Gitlab
::
HTTP
).
to
receive
(
:perform_request
).
and_return
(
response
)
allow
(
Gitlab
::
HTTP
).
to
receive
(
:perform_request
).
and_return
(
response
)
expect
(
Gitlab
::
Geo
).
to
receive
(
:expire_cache!
)
expect
(
Gitlab
::
Geo
).
to
receive
(
:expire_cache!
)
expect
(
subject
.
execute
(
args
)).
to
be_truthy
expect
(
subject
.
execute
(
**
args
)).
to
be_truthy
end
end
it
'does not expire the geo cache on failure'
do
it
'does not expire the geo cache on failure'
do
...
@@ -34,6 +34,6 @@ RSpec.describe Geo::ReplicationToggleRequestService, :geo do
...
@@ -34,6 +34,6 @@ RSpec.describe Geo::ReplicationToggleRequestService, :geo do
allow
(
Gitlab
::
HTTP
).
to
receive
(
:perform_request
).
and_return
(
response
)
allow
(
Gitlab
::
HTTP
).
to
receive
(
:perform_request
).
and_return
(
response
)
expect
(
Gitlab
::
Geo
).
not_to
receive
(
:expire_cache!
)
expect
(
Gitlab
::
Geo
).
not_to
receive
(
:expire_cache!
)
expect
(
subject
.
execute
(
args
)).
to
be_falsey
expect
(
subject
.
execute
(
**
args
)).
to
be_falsey
end
end
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