Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/lib/bulk_imports/common/pipelines/uploads_pipeline_spec.rb')
-rw-r--r--spec/lib/bulk_imports/common/pipelines/uploads_pipeline_spec.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/lib/bulk_imports/common/pipelines/uploads_pipeline_spec.rb b/spec/lib/bulk_imports/common/pipelines/uploads_pipeline_spec.rb
index 675ae935c1c..3c2322c4a4f 100644
--- a/spec/lib/bulk_imports/common/pipelines/uploads_pipeline_spec.rb
+++ b/spec/lib/bulk_imports/common/pipelines/uploads_pipeline_spec.rb
@@ -40,6 +40,14 @@ RSpec.describe BulkImports::Common::Pipelines::UploadsPipeline, feature_category
expect(Dir.exist?(tmpdir)).to eq(false)
end
+ it 'skips loads on duplicates' do
+ pipeline.run
+
+ expect(pipeline).not_to receive(:load)
+
+ pipeline.run
+ end
+
context 'when importing avatar' do
let(:uploads_dir_path) { File.join(tmpdir, 'avatar') }