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
36fc826a
Commit
36fc826a
authored
Feb 22, 2022
by
Siddharth Asthana
Committed by
Peter Leitzen
Feb 26, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Rails/SaveBang offenses
Changelog: other EE: true
parent
57c22b27
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
7 deletions
+3
-7
.rubocop_todo/rails/save_bang.yml
.rubocop_todo/rails/save_bang.yml
+0
-4
ee/spec/lib/analytics/merge_request_metrics_calculator_spec.rb
...ec/lib/analytics/merge_request_metrics_calculator_spec.rb
+3
-3
No files found.
.rubocop_todo/rails/save_bang.yml
deleted
100644 → 0
View file @
57c22b27
---
Rails/SaveBang
:
Exclude
:
-
ee/spec/lib/analytics/merge_request_metrics_calculator_spec.rb
ee/spec/lib/analytics/merge_request_metrics_calculator_spec.rb
View file @
36fc826a
...
...
@@ -60,9 +60,9 @@ RSpec.describe Analytics::MergeRequestMetricsCalculator do
describe
'#first_reassigned_at'
do
it
'returns earliest non-author assignee creation timestamp'
do
merge_request
.
merge_request_assignees
.
create
(
assignee:
merge_request
.
author
,
created_at:
5
.
days
.
ago
)
merge_request
.
merge_request_assignees
.
create
(
assignee:
create
(
:user
),
created_at:
3
.
days
.
ago
)
merge_request
.
merge_request_assignees
.
create
(
assignee:
create
(
:user
),
created_at:
1
.
day
.
ago
)
merge_request
.
merge_request_assignees
.
create
!
(
assignee:
merge_request
.
author
,
created_at:
5
.
days
.
ago
)
merge_request
.
merge_request_assignees
.
create
!
(
assignee:
create
(
:user
),
created_at:
3
.
days
.
ago
)
merge_request
.
merge_request_assignees
.
create
!
(
assignee:
create
(
:user
),
created_at:
1
.
day
.
ago
)
expect
(
subject
.
first_reassigned_at
).
to
be_like_time
(
3
.
days
.
ago
)
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