debian-mirror-gitlab/spec/uploaders/import_export_uploader_spec.rb

21 lines
575 B
Ruby
Raw Normal View History

2018-11-08 19:23:39 +05:30
require 'spec_helper'
describe ImportExportUploader do
let(:model) { build_stubbed(:import_export_upload) }
let(:upload) { create(:upload, model: model) }
2019-03-02 22:35:43 +05:30
subject { described_class.new(model, :import_file) }
2018-11-08 19:23:39 +05:30
context "object_store is REMOTE" do
before do
stub_uploads_object_storage
end
include_context 'with storage', described_class::Store::REMOTE
it_behaves_like 'builds correct paths',
store_dir: %r[import_export_upload/import_file/],
upload_path: %r[import_export_upload/import_file/]
end
end