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
b3de0c1e
Commit
b3de0c1e
authored
Apr 01, 2021
by
Huzaifa Iftikhar
Committed by
Rémy Coutable
Apr 01, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Rails/SaveBang Rubocop offenses for legacy github import
parent
4281600b
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
9 additions
and
8 deletions
+9
-8
.rubocop_manual_todo.yml
.rubocop_manual_todo.yml
+0
-4
changelogs/unreleased/issue-220040-fix-rails-savebang-legacy-github-import-module.yml
...220040-fix-rails-savebang-legacy-github-import-module.yml
+5
-0
spec/lib/gitlab/legacy_github_import/importer_spec.rb
spec/lib/gitlab/legacy_github_import/importer_spec.rb
+1
-1
spec/lib/gitlab/legacy_github_import/issue_formatter_spec.rb
spec/lib/gitlab/legacy_github_import/issue_formatter_spec.rb
+1
-1
spec/lib/gitlab/legacy_github_import/milestone_formatter_spec.rb
...b/gitlab/legacy_github_import/milestone_formatter_spec.rb
+1
-1
spec/lib/gitlab/legacy_github_import/pull_request_formatter_spec.rb
...itlab/legacy_github_import/pull_request_formatter_spec.rb
+1
-1
No files found.
.rubocop_manual_todo.yml
View file @
b3de0c1e
...
...
@@ -280,10 +280,6 @@ Rails/SaveBang:
-
'
spec/lib/gitlab/import_export/uploads_manager_spec.rb'
-
'
spec/lib/gitlab/import_export/uploads_saver_spec.rb'
-
'
spec/lib/gitlab/import_export/wiki_restorer_spec.rb'
-
'
spec/lib/gitlab/legacy_github_import/importer_spec.rb'
-
'
spec/lib/gitlab/legacy_github_import/issue_formatter_spec.rb'
-
'
spec/lib/gitlab/legacy_github_import/milestone_formatter_spec.rb'
-
'
spec/lib/gitlab/legacy_github_import/pull_request_formatter_spec.rb'
-
'
spec/lib/gitlab/lets_encrypt/client_spec.rb'
-
'
spec/lib/gitlab/markdown_cache/active_record/extension_spec.rb'
-
'
spec/lib/gitlab/markdown_cache/redis/store_spec.rb'
...
...
changelogs/unreleased/issue-220040-fix-rails-savebang-legacy-github-import-module.yml
0 → 100644
View file @
b3de0c1e
---
title
:
Fix Rails/SaveBang Rubocop offenses for legacy github import
merge_request
:
58054
author
:
Huzaifa Iftikhar @huzaifaiftikhar
type
:
fixed
spec/lib/gitlab/legacy_github_import/importer_spec.rb
View file @
b3de0c1e
...
...
@@ -290,7 +290,7 @@ RSpec.describe Gitlab::LegacyGithubImport::Importer do
subject
{
described_class
.
new
(
project
)
}
before
do
project
.
update
(
import_type:
'gitea'
,
import_url:
"
#{
repo_root
}
/foo/group/project.git"
)
project
.
update
!
(
import_type:
'gitea'
,
import_url:
"
#{
repo_root
}
/foo/group/project.git"
)
end
it_behaves_like
'Gitlab::LegacyGithubImport::Importer#execute'
do
...
...
spec/lib/gitlab/legacy_github_import/issue_formatter_spec.rb
View file @
b3de0c1e
...
...
@@ -152,7 +152,7 @@ RSpec.describe Gitlab::LegacyGithubImport::IssueFormatter do
context
'when importing a Gitea project'
do
before
do
project
.
update
(
import_type:
'gitea'
)
project
.
update
!
(
import_type:
'gitea'
)
end
it_behaves_like
'Gitlab::LegacyGithubImport::IssueFormatter#attributes'
...
...
spec/lib/gitlab/legacy_github_import/milestone_formatter_spec.rb
View file @
b3de0c1e
...
...
@@ -92,7 +92,7 @@ RSpec.describe Gitlab::LegacyGithubImport::MilestoneFormatter do
let
(
:iid_attr
)
{
:id
}
before
do
project
.
update
(
import_type:
'gitea'
)
project
.
update
!
(
import_type:
'gitea'
)
end
it_behaves_like
'Gitlab::LegacyGithubImport::MilestoneFormatter#attributes'
...
...
spec/lib/gitlab/legacy_github_import/pull_request_formatter_spec.rb
View file @
b3de0c1e
...
...
@@ -260,7 +260,7 @@ RSpec.describe Gitlab::LegacyGithubImport::PullRequestFormatter do
context
'when importing a Gitea project'
do
before
do
project
.
update
(
import_type:
'gitea'
)
project
.
update
!
(
import_type:
'gitea'
)
end
it_behaves_like
'Gitlab::LegacyGithubImport::PullRequestFormatter#attributes'
...
...
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