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
7376f0aa
Commit
7376f0aa
authored
Sep 19, 2020
by
Rajendra Kadam
Committed by
Peter Leitzen
Sep 19, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Rails/SaveBang offenses
Fixes Rails/SaveBang cop for spec files in spec/services/milestones/*
parent
e342d150
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
6 deletions
+8
-6
.rubocop_todo.yml
.rubocop_todo.yml
+0
-3
changelogs/unreleased/rails-save-bang-33.yml
changelogs/unreleased/rails-save-bang-33.yml
+5
-0
spec/services/milestones/destroy_service_spec.rb
spec/services/milestones/destroy_service_spec.rb
+1
-1
spec/services/milestones/promote_service_spec.rb
spec/services/milestones/promote_service_spec.rb
+1
-1
spec/services/milestones/transfer_service_spec.rb
spec/services/milestones/transfer_service_spec.rb
+1
-1
No files found.
.rubocop_todo.yml
View file @
7376f0aa
...
...
@@ -1144,9 +1144,6 @@ Rails/SaveBang:
-
'
spec/services/issuable/clone/attributes_rewriter_spec.rb'
-
'
spec/services/issuable/common_system_notes_service_spec.rb'
-
'
spec/services/labels/promote_service_spec.rb'
-
'
spec/services/milestones/destroy_service_spec.rb'
-
'
spec/services/milestones/promote_service_spec.rb'
-
'
spec/services/milestones/transfer_service_spec.rb'
-
'
spec/services/notes/create_service_spec.rb'
-
'
spec/services/notification_recipients/build_service_spec.rb'
-
'
spec/services/notification_service_spec.rb'
...
...
changelogs/unreleased/rails-save-bang-33.yml
0 → 100644
View file @
7376f0aa
---
title
:
Fix Rails/SaveBang offenses for spec files in spec/services/milestones/*
merge_request
:
42775
author
:
Rajendra Kadam
type
:
other
spec/services/milestones/destroy_service_spec.rb
View file @
7376f0aa
...
...
@@ -45,7 +45,7 @@ RSpec.describe Milestones::DestroyService do
let
(
:group_milestone
)
{
create
(
:milestone
,
group:
group
)
}
before
do
project
.
update
(
namespace:
group
)
project
.
update
!
(
namespace:
group
)
group
.
add_developer
(
user
)
end
...
...
spec/services/milestones/promote_service_spec.rb
View file @
7376f0aa
...
...
@@ -23,7 +23,7 @@ RSpec.describe Milestones::PromoteService do
end
it
'raises error if project does not belong to a group'
do
project
.
update
(
namespace:
user
.
namespace
)
project
.
update
!
(
namespace:
user
.
namespace
)
expect
{
service
.
execute
(
milestone
)
}.
to
raise_error
(
described_class
::
PromoteMilestoneError
)
end
...
...
spec/services/milestones/transfer_service_spec.rb
View file @
7376f0aa
...
...
@@ -23,7 +23,7 @@ RSpec.describe Milestones::TransferService do
new_group
.
add_maintainer
(
user
)
project
.
add_maintainer
(
user
)
# simulate project transfer
project
.
update
(
group:
new_group
)
project
.
update
!
(
group:
new_group
)
end
context
'without existing milestone at the new group level'
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