diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2024-01-23 15:07:23 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2024-01-23 15:07:23 +0300 |
commit | 84b507d17bad7636a02ae2e9f59e8eb219ad7e15 (patch) | |
tree | fb544e6ae2990ec9b7ccd21c7add91a89623f4de /spec/lib/bulk_imports/projects/pipelines/protected_branches_pipeline_spec.rb | |
parent | 5831f05b4ce3e5af23c98a8c9495419509df6d62 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/lib/bulk_imports/projects/pipelines/protected_branches_pipeline_spec.rb')
-rw-r--r-- | spec/lib/bulk_imports/projects/pipelines/protected_branches_pipeline_spec.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/lib/bulk_imports/projects/pipelines/protected_branches_pipeline_spec.rb b/spec/lib/bulk_imports/projects/pipelines/protected_branches_pipeline_spec.rb index 7de2e266192..3e182c57d87 100644 --- a/spec/lib/bulk_imports/projects/pipelines/protected_branches_pipeline_spec.rb +++ b/spec/lib/bulk_imports/projects/pipelines/protected_branches_pipeline_spec.rb @@ -2,7 +2,7 @@ require 'spec_helper' -RSpec.describe BulkImports::Projects::Pipelines::ProtectedBranchesPipeline do +RSpec.describe BulkImports::Projects::Pipelines::ProtectedBranchesPipeline, feature_category: :importers do let_it_be(:user) { create(:user) } let_it_be(:project) { create(:project) } let_it_be(:bulk_import) { create(:bulk_import, user: user) } @@ -39,6 +39,8 @@ RSpec.describe BulkImports::Projects::Pipelines::ProtectedBranchesPipeline do allow(extractor).to receive(:extract).and_return(BulkImports::Pipeline::ExtractedData.new(data: [protected_branch, 0])) end + allow(pipeline).to receive(:set_source_objects_counter) + pipeline.run imported_protected_branch = project.protected_branches.last |