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
a1d1796b
Commit
a1d1796b
authored
Mar 30, 2021
by
Huzaifa Iftikhar
Committed by
Peter Leitzen
Mar 30, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Rails/SaveBang Rubocop offenses for admin controllers
parent
6a0444af
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
7 deletions
+9
-7
.rubocop_manual_todo.yml
.rubocop_manual_todo.yml
+0
-3
changelogs/unreleased/issue-220040-fix-rails-savebang-admin-controllers.yml
...sed/issue-220040-fix-rails-savebang-admin-controllers.yml
+5
-0
spec/controllers/admin/impersonations_controller_spec.rb
spec/controllers/admin/impersonations_controller_spec.rb
+1
-1
spec/controllers/admin/runners_controller_spec.rb
spec/controllers/admin/runners_controller_spec.rb
+2
-2
spec/controllers/admin/services_controller_spec.rb
spec/controllers/admin/services_controller_spec.rb
+1
-1
No files found.
.rubocop_manual_todo.yml
View file @
a1d1796b
...
...
@@ -177,9 +177,6 @@ Rails/SaveBang:
-
'
qa/qa/specs/features/ee/browser_ui/3_create/repository/pull_mirroring_over_http_spec.rb'
-
'
qa/qa/specs/features/ee/browser_ui/3_create/repository/pull_mirroring_over_ssh_with_key_spec.rb'
-
'
spec/controllers/abuse_reports_controller_spec.rb'
-
'
spec/controllers/admin/impersonations_controller_spec.rb'
-
'
spec/controllers/admin/runners_controller_spec.rb'
-
'
spec/controllers/admin/services_controller_spec.rb'
-
'
spec/controllers/boards/issues_controller_spec.rb'
-
'
spec/controllers/groups/milestones_controller_spec.rb'
-
'
spec/controllers/groups/runners_controller_spec.rb'
...
...
changelogs/unreleased/issue-220040-fix-rails-savebang-admin-controllers.yml
0 → 100644
View file @
a1d1796b
---
title
:
Fix Rails/SaveBang Rubocop offenses for admin controllers
merge_request
:
57644
author
:
Huzaifa Iftikhar @huzaifaiftikhar
type
:
fixed
spec/controllers/admin/impersonations_controller_spec.rb
View file @
a1d1796b
...
...
@@ -42,7 +42,7 @@ RSpec.describe Admin::ImpersonationsController do
context
"when the impersonator is not admin (anymore)"
do
before
do
impersonator
.
admin
=
false
impersonator
.
save
impersonator
.
save
!
end
it
"responds with status 404"
do
...
...
spec/controllers/admin/runners_controller_spec.rb
View file @
a1d1796b
...
...
@@ -125,7 +125,7 @@ RSpec.describe Admin::RunnersController do
describe
'#resume'
do
it
'marks the runner as active and ticks the queue'
do
runner
.
update
(
active:
false
)
runner
.
update
!
(
active:
false
)
expect
do
post
:resume
,
params:
{
id:
runner
.
id
}
...
...
@@ -140,7 +140,7 @@ RSpec.describe Admin::RunnersController do
describe
'#pause'
do
it
'marks the runner as inactive and ticks the queue'
do
runner
.
update
(
active:
true
)
runner
.
update
!
(
active:
true
)
expect
do
post
:pause
,
params:
{
id:
runner
.
id
}
...
...
spec/controllers/admin/services_controller_spec.rb
View file @
a1d1796b
...
...
@@ -44,7 +44,7 @@ RSpec.describe Admin::ServicesController do
describe
"#update"
do
let
(
:project
)
{
create
(
:project
)
}
let!
(
:service_template
)
do
RedmineService
.
create
(
RedmineService
.
create
!
(
project:
nil
,
active:
false
,
template:
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