summaryrefslogtreecommitdiff
path: root/spec/uploaders
diff options
context:
space:
mode:
authorKamil Trzciński <ayufan@ayufan.eu>2018-09-11 14:42:35 +0000
committerKamil Trzciński <ayufan@ayufan.eu>2018-09-11 14:42:35 +0000
commit44931bd23d4e750b1bd690adaaa2fd2b40154117 (patch)
treea46f1f2e7d8b47cbb3ab06e70f0532075bedb408 /spec/uploaders
parent9b0127e0cf28131aa70d2dfc74ced0602e45671f (diff)
parent8440435214257af1b5e9a79e52a0e9b6749b60f2 (diff)
downloadgitlab-ce-44931bd23d4e750b1bd690adaaa2fd2b40154117.tar.gz
Merge branch 'fix-namespace-upload' into 'master'
Fix workhorse temp path for namespace uploads Closes gitlab-ee#7009 See merge request gitlab-org/gitlab-ce!21650
Diffstat (limited to 'spec/uploaders')
-rw-r--r--spec/uploaders/namespace_file_uploader_spec.rb6
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')))