diff options
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 |