diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-01-24 21:14:42 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-01-24 21:14:42 +0300 |
commit | fdc98c3e3cfdca66222044fc6aa195011d227ee2 (patch) | |
tree | 28ad3af7ed332c76b4f05e8fd456eaed4bac9c49 /spec/uploaders/import_export_uploader_spec.rb | |
parent | 87543246d9d68066b216811f3de590689e218e7c (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/uploaders/import_export_uploader_spec.rb')
-rw-r--r-- | spec/uploaders/import_export_uploader_spec.rb | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/spec/uploaders/import_export_uploader_spec.rb b/spec/uploaders/import_export_uploader_spec.rb index cb7a89193e6..64e92f5d60e 100644 --- a/spec/uploaders/import_export_uploader_spec.rb +++ b/spec/uploaders/import_export_uploader_spec.rb @@ -10,6 +10,20 @@ RSpec.describe ImportExportUploader do subject { described_class.new(model, :import_file) } context 'local store' do + describe '#move_to_cache' do + it 'returns false' do + expect(subject.move_to_cache).to be false + end + + context 'with project export' do + subject { described_class.new(model, :export_file) } + + it 'returns true' do + expect(subject.move_to_cache).to be true + end + end + end + describe '#move_to_store' do it 'returns true' do expect(subject.move_to_store).to be true @@ -33,6 +47,20 @@ RSpec.describe ImportExportUploader do let(:fixture) { File.join('spec', 'fixtures', 'group_export.tar.gz') } end + describe '#move_to_cache' do + it 'returns false' do + expect(subject.move_to_cache).to be false + end + + context 'with project export' do + subject { described_class.new(model, :export_file) } + + it 'returns true' do + expect(subject.move_to_cache).to be false + end + end + end + describe '#move_to_store' do it 'returns false' do expect(subject.move_to_store).to be false |