gitlab-org--gitlab-foss/spec/uploaders/lfs_object_uploader_spec.rb

15 lines
444 B
Ruby
Raw Normal View History

require 'spec_helper'
describe LfsObjectUploader do
let(:lfs_object) { create(:lfs_object, :with_file) }
2018-01-29 12:57:34 -05:00
let(:uploader) { described_class.new(lfs_object, :file) }
let(:path) { Gitlab.config.lfs.storage_path }
2018-01-29 12:57:34 -05:00
subject { uploader }
2018-01-29 12:57:34 -05:00
it_behaves_like "builds correct paths",
store_dir: %r[\h{2}/\h{2}],
cache_dir: %r[/lfs-objects/tmp/cache],
work_dir: %r[/lfs-objects/tmp/work]
end