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
a9540088
Commit
a9540088
authored
Apr 13, 2021
by
Huzaifa Iftikhar
Committed by
Markus Koller
Apr 13, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Rails/SaveBang Rubocop offenses for gitaly client models
parent
d826cb89
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
5 deletions
+8
-5
.rubocop_manual_todo.yml
.rubocop_manual_todo.yml
+0
-2
changelogs/unreleased/issue-220040-fix-rails-savebang-gitaly-client-module.yml
.../issue-220040-fix-rails-savebang-gitaly-client-module.yml
+5
-0
spec/lib/gitlab/gitaly_client/object_pool_service_spec.rb
spec/lib/gitlab/gitaly_client/object_pool_service_spec.rb
+2
-2
spec/lib/gitlab/gitaly_client/repository_service_spec.rb
spec/lib/gitlab/gitaly_client/repository_service_spec.rb
+1
-1
No files found.
.rubocop_manual_todo.yml
View file @
a9540088
...
...
@@ -254,8 +254,6 @@ Rails/SaveBang:
-
'
spec/lib/gitlab/email/handler/unsubscribe_handler_spec.rb'
-
'
spec/lib/gitlab/gfm/reference_rewriter_spec.rb'
-
'
spec/lib/gitlab/git_access_spec.rb'
-
'
spec/lib/gitlab/gitaly_client/object_pool_service_spec.rb'
-
'
spec/lib/gitlab/gitaly_client/repository_service_spec.rb'
-
'
spec/lib/gitlab/import_export/avatar_saver_spec.rb'
-
'
spec/lib/gitlab/import_export/base/relation_factory_spec.rb'
-
'
spec/lib/gitlab/import_export/design_repo_restorer_spec.rb'
...
...
changelogs/unreleased/issue-220040-fix-rails-savebang-gitaly-client-module.yml
0 → 100644
View file @
a9540088
---
title
:
Fix Rails/SaveBang Rubocop offenses for gitaly client models
merge_request
:
58089
author
:
Huzaifa Iftikhar @huzaifaiftikhar
type
:
fixed
spec/lib/gitlab/gitaly_client/object_pool_service_spec.rb
View file @
a9540088
...
...
@@ -11,7 +11,7 @@ RSpec.describe Gitlab::GitalyClient::ObjectPoolService do
subject
{
described_class
.
new
(
object_pool
)
}
before
do
subject
.
create
(
raw_repository
)
subject
.
create
(
raw_repository
)
# rubocop:disable Rails/SaveBang
end
describe
'#create'
do
...
...
@@ -22,7 +22,7 @@ RSpec.describe Gitlab::GitalyClient::ObjectPoolService do
context
'when the pool already exists'
do
it
'returns an error'
do
expect
do
subject
.
create
(
raw_repository
)
subject
.
create
(
raw_repository
)
# rubocop:disable Rails/SaveBang
end
.
to
raise_error
(
GRPC
::
FailedPrecondition
)
end
end
...
...
spec/lib/gitlab/gitaly_client/repository_service_spec.rb
View file @
a9540088
...
...
@@ -270,7 +270,7 @@ RSpec.describe Gitlab::GitalyClient::RepositoryService do
let
(
:object_pool_service
)
{
Gitlab
::
GitalyClient
::
ObjectPoolService
.
new
(
object_pool
)
}
before
do
object_pool_service
.
create
(
repository
)
object_pool_service
.
create
(
repository
)
# rubocop:disable Rails/SaveBang
object_pool_service
.
link_repository
(
repository
)
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