diff options
author | Jarka Košanová <jarka@gitlab.com> | 2018-09-10 19:03:33 +0200 |
---|---|---|
committer | Jarka Košanová <jarka@gitlab.com> | 2018-09-11 15:45:46 +0200 |
commit | 8440435214257af1b5e9a79e52a0e9b6749b60f2 (patch) | |
tree | 20387c2000dc3fc7d5dfbe380dc74484053e1aa9 /spec/uploaders | |
parent | 2054199b47c0b92194f4551ad69e84cb5b9d9edf (diff) | |
download | gitlab-ce-8440435214257af1b5e9a79e52a0e9b6749b60f2.tar.gz |
Fix workhorse temp path for namespace uploads
Diffstat (limited to 'spec/uploaders')
-rw-r--r-- | spec/uploaders/namespace_file_uploader_spec.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/uploaders/namespace_file_uploader_spec.rb b/spec/uploaders/namespace_file_uploader_spec.rb index eafbea07e10..799c6db57fa 100644 --- a/spec/uploaders/namespace_file_uploader_spec.rb +++ b/spec/uploaders/namespace_file_uploader_spec.rb @@ -40,6 +40,12 @@ describe NamespaceFileUploader do end end + describe '#workhorse_local_upload_path' do + it 'returns the correct path in uploads directory' do + expect(described_class.workhorse_local_upload_path).to end_with('/uploads/tmp/uploads') + end + end + describe "#migrate!" do before do uploader.store!(fixture_file_upload(File.join('spec/fixtures/doc_sample.txt'))) |