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
c75e8475
Commit
c75e8475
authored
Dec 04, 2021
by
Siddharth Asthana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Rails/SaveBang offenses
Changelog: other
parent
6b591ca2
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
7 additions
and
11 deletions
+7
-11
.rubocop_todo/rails/save_bang.yml
.rubocop_todo/rails/save_bang.yml
+0
-4
spec/controllers/abuse_reports_controller_spec.rb
spec/controllers/abuse_reports_controller_spec.rb
+1
-1
spec/controllers/boards/issues_controller_spec.rb
spec/controllers/boards/issues_controller_spec.rb
+1
-1
spec/controllers/sent_notifications_controller_spec.rb
spec/controllers/sent_notifications_controller_spec.rb
+4
-4
spec/controllers/sessions_controller_spec.rb
spec/controllers/sessions_controller_spec.rb
+1
-1
No files found.
.rubocop_todo/rails/save_bang.yml
View file @
c75e8475
...
...
@@ -74,10 +74,6 @@ Rails/SaveBang:
-
qa/qa/specs/features/browser_ui/3_create/repository/push_mirroring_lfs_over_http_spec.rb
-
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/boards/issues_controller_spec.rb
-
spec/controllers/sent_notifications_controller_spec.rb
-
spec/controllers/sessions_controller_spec.rb
-
spec/lib/backup/manager_spec.rb
-
spec/lib/gitlab/alerting/alert_spec.rb
-
spec/lib/gitlab/analytics/cycle_analytics/records_fetcher_spec.rb
...
...
spec/controllers/abuse_reports_controller_spec.rb
View file @
c75e8475
...
...
@@ -19,7 +19,7 @@ RSpec.describe AbuseReportsController do
context
'when the user has already been deleted'
do
it
'redirects the reporter to root_path'
do
user_id
=
user
.
id
user
.
destroy
user
.
destroy
!
get
:new
,
params:
{
user_id:
user_id
}
...
...
spec/controllers/boards/issues_controller_spec.rb
View file @
c75e8475
...
...
@@ -484,7 +484,7 @@ RSpec.describe Boards::IssuesController do
context
'with guest user'
do
context
'in open list'
do
it
'returns a successful 200 response'
do
open_list
=
board
.
lists
.
create
(
list_type: :backlog
)
open_list
=
board
.
lists
.
create
!
(
list_type: :backlog
)
create_issue
user:
guest
,
board:
board
,
list:
open_list
,
title:
'New issue'
expect
(
response
).
to
have_gitlab_http_status
(
:ok
)
...
...
spec/controllers/sent_notifications_controller_spec.rb
View file @
c75e8475
...
...
@@ -10,19 +10,19 @@ RSpec.describe SentNotificationsController do
let
(
:issue
)
do
create
(
:issue
,
project:
target_project
)
do
|
issue
|
issue
.
subscriptions
.
create
(
user:
user
,
project:
target_project
,
subscribed:
true
)
issue
.
subscriptions
.
create
!
(
user:
user
,
project:
target_project
,
subscribed:
true
)
end
end
let
(
:confidential_issue
)
do
create
(
:issue
,
project:
target_project
,
confidential:
true
)
do
|
issue
|
issue
.
subscriptions
.
create
(
user:
user
,
project:
target_project
,
subscribed:
true
)
issue
.
subscriptions
.
create
!
(
user:
user
,
project:
target_project
,
subscribed:
true
)
end
end
let
(
:merge_request
)
do
create
(
:merge_request
,
source_project:
target_project
,
target_project:
target_project
)
do
|
mr
|
mr
.
subscriptions
.
create
(
user:
user
,
project:
target_project
,
subscribed:
true
)
mr
.
subscriptions
.
create
!
(
user:
user
,
project:
target_project
,
subscribed:
true
)
end
end
...
...
@@ -213,7 +213,7 @@ RSpec.describe SentNotificationsController do
context
'when the force param is not passed'
do
let
(
:merge_request
)
do
create
(
:merge_request
,
source_project:
project
,
author:
user
)
do
|
merge_request
|
merge_request
.
subscriptions
.
create
(
user:
user
,
project:
project
,
subscribed:
true
)
merge_request
.
subscriptions
.
create
!
(
user:
user
,
project:
project
,
subscribed:
true
)
end
end
...
...
spec/controllers/sessions_controller_spec.rb
View file @
c75e8475
...
...
@@ -403,7 +403,7 @@ RSpec.describe SessionsController do
context
'when the user is on their last attempt'
do
before
do
user
.
update
(
failed_attempts:
User
.
maximum_attempts
.
pred
)
user
.
update
!
(
failed_attempts:
User
.
maximum_attempts
.
pred
)
end
context
'when OTP is valid'
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