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
67ca0604
Commit
67ca0604
authored
Mar 22, 2022
by
Timo Furrer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactor unnecessary lambda in specs
parent
fe5a94c2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
spec/requests/api/remote_mirrors_spec.rb
spec/requests/api/remote_mirrors_spec.rb
+3
-3
No files found.
spec/requests/api/remote_mirrors_spec.rb
View file @
67ca0604
...
...
@@ -95,11 +95,11 @@ RSpec.describe API::RemoteMirrors do
end
describe
'PUT /projects/:id/remote_mirrors/:mirror_id'
do
let
(
:route
)
{
->
(
id
)
{
"/projects/
#{
project
.
id
}
/remote_mirrors/
#{
id
}
"
}
}
let
(
:route
)
{
"/projects/
#{
project
.
id
}
/remote_mirrors/
#{
mirror
.
id
}
"
}
let
(
:mirror
)
{
project
.
remote_mirrors
.
first
}
it
'requires `admin_remote_mirror` permission'
do
put
api
(
route
[
mirror
.
id
]
,
developer
)
put
api
(
route
,
developer
)
expect
(
response
).
to
have_gitlab_http_status
(
:unauthorized
)
end
...
...
@@ -107,7 +107,7 @@ RSpec.describe API::RemoteMirrors do
it
'updates a remote mirror'
do
project
.
add_maintainer
(
user
)
put
api
(
route
[
mirror
.
id
]
,
user
),
params:
{
put
api
(
route
,
user
),
params:
{
enabled:
'0'
,
only_protected_branches:
'true'
,
keep_divergent_refs:
'true'
...
...
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