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

15 lines
444 B
Ruby
Raw Normal View History

2017-08-17 22:00:37 +05:30
require 'spec_helper'
describe LfsObjectUploader do
2017-09-10 17:25:29 +05:30
let(:lfs_object) { create(:lfs_object, :with_file) }
2018-03-17 18:26:18 +05:30
let(:uploader) { described_class.new(lfs_object, :file) }
2017-09-10 17:25:29 +05:30
let(:path) { Gitlab.config.lfs.storage_path }
2017-08-17 22:00:37 +05:30
2018-03-17 18:26:18 +05:30
subject { uploader }
2017-08-17 22:00:37 +05:30
2018-03-17 18:26:18 +05:30
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-08-17 22:00:37 +05:30
end