diff options
author | James Lopez <james@jameslopez.es> | 2018-07-10 17:33:40 +0300 |
---|---|---|
committer | James Lopez <james@jameslopez.es> | 2018-07-10 17:33:40 +0300 |
commit | a27d4d9e524ee0b7eb5f5518fc6f8af00e1e6dfe (patch) | |
tree | c9c7f03cf5b5ecb0fc7f027daebab109aa76c417 /spec/lib | |
parent | 2c1e66d4d2124ec3d6101a6c5586867139f6fd20 (diff) |
update uploads saver
Diffstat (limited to 'spec/lib')
-rw-r--r-- | spec/lib/gitlab/import_export/uploads_saver_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/lib/gitlab/import_export/uploads_saver_spec.rb b/spec/lib/gitlab/import_export/uploads_saver_spec.rb index 095687fa89d..24993460e51 100644 --- a/spec/lib/gitlab/import_export/uploads_saver_spec.rb +++ b/spec/lib/gitlab/import_export/uploads_saver_spec.rb @@ -30,7 +30,7 @@ describe Gitlab::ImportExport::UploadsSaver do it 'copies the uploads to the export path' do saver.save - uploads = Dir.glob(File.join(saver.uploads_export_path, '**/*')).map { |file| File.basename(file) } + uploads = Dir.glob(File.join(shared.export_path, 'uploads/**/*')).map { |file| File.basename(file) } expect(uploads).to include('banana_sample.gif') end @@ -52,7 +52,7 @@ describe Gitlab::ImportExport::UploadsSaver do it 'copies the uploads to the export path' do saver.save - uploads = Dir.glob(File.join(saver.uploads_export_path, '**/*')).map { |file| File.basename(file) } + uploads = Dir.glob(File.join(shared.export_path, 'uploads/**/*')).map { |file| File.basename(file) } expect(uploads).to include('banana_sample.gif') end |