2017-06-01 16:15:46 -04:00
|
|
|
require 'spec_helper'
|
|
|
|
|
|
|
|
describe LfsObjectUploader do
|
2017-06-05 01:12:18 -04:00
|
|
|
let(:lfs_object) { create(:lfs_object, :with_file) }
|
2018-01-29 12:57:34 -05:00
|
|
|
let(:uploader) { described_class.new(lfs_object, :file) }
|
2017-06-05 01:12:18 -04:00
|
|
|
let(:path) { Gitlab.config.lfs.storage_path }
|
2017-06-01 16:15:46 -04:00
|
|
|
|
2018-01-29 12:57:34 -05:00
|
|
|
subject { uploader }
|
2017-06-01 16:15:46 -04:00
|
|
|
|
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]
|
2017-06-01 16:15:46 -04:00
|
|
|
end
|