Commit b3de0c1e authored by Huzaifa Iftikhar's avatar Huzaifa Iftikhar Committed by Rémy Coutable

Fix Rails/SaveBang Rubocop offenses for legacy github import

parent 4281600b
...@@ -280,10 +280,6 @@ Rails/SaveBang: ...@@ -280,10 +280,6 @@ Rails/SaveBang:
- 'spec/lib/gitlab/import_export/uploads_manager_spec.rb' - 'spec/lib/gitlab/import_export/uploads_manager_spec.rb'
- 'spec/lib/gitlab/import_export/uploads_saver_spec.rb' - 'spec/lib/gitlab/import_export/uploads_saver_spec.rb'
- 'spec/lib/gitlab/import_export/wiki_restorer_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/lets_encrypt/client_spec.rb'
- 'spec/lib/gitlab/markdown_cache/active_record/extension_spec.rb' - 'spec/lib/gitlab/markdown_cache/active_record/extension_spec.rb'
- 'spec/lib/gitlab/markdown_cache/redis/store_spec.rb' - 'spec/lib/gitlab/markdown_cache/redis/store_spec.rb'
......
---
title: Fix Rails/SaveBang Rubocop offenses for legacy github import
merge_request: 58054
author: Huzaifa Iftikhar @huzaifaiftikhar
type: fixed
...@@ -290,7 +290,7 @@ RSpec.describe Gitlab::LegacyGithubImport::Importer do ...@@ -290,7 +290,7 @@ RSpec.describe Gitlab::LegacyGithubImport::Importer do
subject { described_class.new(project) } subject { described_class.new(project) }
before do 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 end
it_behaves_like 'Gitlab::LegacyGithubImport::Importer#execute' do it_behaves_like 'Gitlab::LegacyGithubImport::Importer#execute' do
......
...@@ -152,7 +152,7 @@ RSpec.describe Gitlab::LegacyGithubImport::IssueFormatter do ...@@ -152,7 +152,7 @@ RSpec.describe Gitlab::LegacyGithubImport::IssueFormatter do
context 'when importing a Gitea project' do context 'when importing a Gitea project' do
before do before do
project.update(import_type: 'gitea') project.update!(import_type: 'gitea')
end end
it_behaves_like 'Gitlab::LegacyGithubImport::IssueFormatter#attributes' it_behaves_like 'Gitlab::LegacyGithubImport::IssueFormatter#attributes'
......
...@@ -92,7 +92,7 @@ RSpec.describe Gitlab::LegacyGithubImport::MilestoneFormatter do ...@@ -92,7 +92,7 @@ RSpec.describe Gitlab::LegacyGithubImport::MilestoneFormatter do
let(:iid_attr) { :id } let(:iid_attr) { :id }
before do before do
project.update(import_type: 'gitea') project.update!(import_type: 'gitea')
end end
it_behaves_like 'Gitlab::LegacyGithubImport::MilestoneFormatter#attributes' it_behaves_like 'Gitlab::LegacyGithubImport::MilestoneFormatter#attributes'
......
...@@ -260,7 +260,7 @@ RSpec.describe Gitlab::LegacyGithubImport::PullRequestFormatter do ...@@ -260,7 +260,7 @@ RSpec.describe Gitlab::LegacyGithubImport::PullRequestFormatter do
context 'when importing a Gitea project' do context 'when importing a Gitea project' do
before do before do
project.update(import_type: 'gitea') project.update!(import_type: 'gitea')
end end
it_behaves_like 'Gitlab::LegacyGithubImport::PullRequestFormatter#attributes' it_behaves_like 'Gitlab::LegacyGithubImport::PullRequestFormatter#attributes'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment