Skip to content
Snippets Groups Projects

Fix LFS timeouts when trying to save large files

Merged Stan Hu requested to merge sh-fix-lfs-from-moving-across-filesystems into master
1 file
+ 26
0
Compare changes
  • Side-by-side
  • Inline
+ 26
0
require 'spec_helper'
describe LfsObjectUploader do
let(:uploader) { described_class.new(build_stubbed(:empty_project)) }
describe '#cache!' do
it 'caches the file in the cache directory' do
fixture = Rails.root.join('spec', 'fixtures', 'rails_sample.jpg')
uploader.cache!(fixture_file_upload(fixture))
expect(uploader.relative_path).to start_with(uploader.cache_dir)
end
end
describe '#move_to_cache' do
it 'is true' do
expect(uploader.move_to_cache).to eq(true)
end
end
describe '#move_to_store' do
it 'is true' do
expect(uploader.move_to_store).to eq(true)
end
end
end
Loading