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
de48d442
Commit
de48d442
authored
Sep 07, 2020
by
Rajendra Kadam
Committed by
Peter Leitzen
Sep 07, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Rails/SaveBang offenses
Fixes Rails/SaveBang cop for spec files
parent
b720d175
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
12 additions
and
10 deletions
+12
-10
.rubocop_todo.yml
.rubocop_todo.yml
+0
-3
changelogs/unreleased/rails-save-bang-32.yml
changelogs/unreleased/rails-save-bang-32.yml
+5
-0
spec/requests/api/maven_packages_spec.rb
spec/requests/api/maven_packages_spec.rb
+1
-1
spec/requests/api/members_spec.rb
spec/requests/api/members_spec.rb
+4
-4
spec/requests/api/merge_request_diffs_spec.rb
spec/requests/api/merge_request_diffs_spec.rb
+2
-2
No files found.
.rubocop_todo.yml
View file @
de48d442
...
@@ -1147,9 +1147,6 @@ Rails/SaveBang:
...
@@ -1147,9 +1147,6 @@ Rails/SaveBang:
-
'
spec/requests/api/issues/post_projects_issues_spec.rb'
-
'
spec/requests/api/issues/post_projects_issues_spec.rb'
-
'
spec/requests/api/jobs_spec.rb'
-
'
spec/requests/api/jobs_spec.rb'
-
'
spec/requests/api/labels_spec.rb'
-
'
spec/requests/api/labels_spec.rb'
-
'
spec/requests/api/maven_packages_spec.rb'
-
'
spec/requests/api/members_spec.rb'
-
'
spec/requests/api/merge_request_diffs_spec.rb'
-
'
spec/requests/api/merge_requests_spec.rb'
-
'
spec/requests/api/merge_requests_spec.rb'
-
'
spec/requests/api/notes_spec.rb'
-
'
spec/requests/api/notes_spec.rb'
-
'
spec/requests/api/pipeline_schedules_spec.rb'
-
'
spec/requests/api/pipeline_schedules_spec.rb'
...
...
changelogs/unreleased/rails-save-bang-32.yml
0 → 100644
View file @
de48d442
---
title
:
Fix Rails/SaveBang offenses for 3 files
merge_request
:
41398
author
:
Rajendra Kadam
type
:
other
spec/requests/api/maven_packages_spec.rb
View file @
de48d442
...
@@ -283,7 +283,7 @@ RSpec.describe API::MavenPackages do
...
@@ -283,7 +283,7 @@ RSpec.describe API::MavenPackages do
context
'internal project'
do
context
'internal project'
do
before
do
before
do
group
.
group_member
(
user
).
destroy
group
.
group_member
(
user
).
destroy
!
project
.
update!
(
visibility_level:
Gitlab
::
VisibilityLevel
::
INTERNAL
)
project
.
update!
(
visibility_level:
Gitlab
::
VisibilityLevel
::
INTERNAL
)
end
end
...
...
spec/requests/api/members_spec.rb
View file @
de48d442
...
@@ -258,8 +258,8 @@ RSpec.describe API::Members do
...
@@ -258,8 +258,8 @@ RSpec.describe API::Members do
it
'does not create the member if group level is higher'
do
it
'does not create the member if group level is higher'
do
parent
=
create
(
:group
)
parent
=
create
(
:group
)
group
.
update
(
parent:
parent
)
group
.
update
!
(
parent:
parent
)
project
.
update
(
group:
group
)
project
.
update
!
(
group:
group
)
parent
.
add_developer
(
stranger
)
parent
.
add_developer
(
stranger
)
post
api
(
"/
#{
source_type
.
pluralize
}
/
#{
source
.
id
}
/members"
,
maintainer
),
post
api
(
"/
#{
source_type
.
pluralize
}
/
#{
source
.
id
}
/members"
,
maintainer
),
...
@@ -272,8 +272,8 @@ RSpec.describe API::Members do
...
@@ -272,8 +272,8 @@ RSpec.describe API::Members do
it
'creates the member if group level is lower'
do
it
'creates the member if group level is lower'
do
parent
=
create
(
:group
)
parent
=
create
(
:group
)
group
.
update
(
parent:
parent
)
group
.
update
!
(
parent:
parent
)
project
.
update
(
group:
group
)
project
.
update
!
(
group:
group
)
parent
.
add_developer
(
stranger
)
parent
.
add_developer
(
stranger
)
post
api
(
"/
#{
source_type
.
pluralize
}
/
#{
source
.
id
}
/members"
,
maintainer
),
post
api
(
"/
#{
source_type
.
pluralize
}
/
#{
source
.
id
}
/members"
,
maintainer
),
...
...
spec/requests/api/merge_request_diffs_spec.rb
View file @
de48d442
...
@@ -8,8 +8,8 @@ RSpec.describe API::MergeRequestDiffs, 'MergeRequestDiffs' do
...
@@ -8,8 +8,8 @@ RSpec.describe API::MergeRequestDiffs, 'MergeRequestDiffs' do
let!
(
:project
)
{
merge_request
.
target_project
}
let!
(
:project
)
{
merge_request
.
target_project
}
before
do
before
do
merge_request
.
merge_request_diffs
.
create
(
head_commit_sha:
'6f6d7e7ed97bb5f0054f2b1df789b39ca89b6ff9'
)
merge_request
.
merge_request_diffs
.
create
!
(
head_commit_sha:
'6f6d7e7ed97bb5f0054f2b1df789b39ca89b6ff9'
)
merge_request
.
merge_request_diffs
.
create
(
head_commit_sha:
'5937ac0a7beb003549fc5fd26fc247adbce4a52e'
)
merge_request
.
merge_request_diffs
.
create
!
(
head_commit_sha:
'5937ac0a7beb003549fc5fd26fc247adbce4a52e'
)
project
.
add_maintainer
(
user
)
project
.
add_maintainer
(
user
)
end
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