Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJarka Košanová <jarka@gitlab.com>2019-01-23 21:44:12 +0300
committerJarka Košanová <jarka@gitlab.com>2019-06-06 16:33:04 +0300
commit3335918bff211f543ec0f304fbfaf8278daa91d2 (patch)
tree49ec7f5ace42ae7d7e2347aba4f54b88567f37bf /spec/factories/uploads.rb
parenta05f86cef14dc24df655705e1976c95ebf31fd1c (diff)
Migrate legacy uploads to the project location
Uploads coming from AttachmentUploader need to be moved to the currently supported location (FileUploader)
Diffstat (limited to 'spec/factories/uploads.rb')
-rw-r--r--spec/factories/uploads.rb5
1 files changed, 1 insertions, 4 deletions
diff --git a/spec/factories/uploads.rb b/spec/factories/uploads.rb
index 426abdc2a6c..52f6962f16b 100644
--- a/spec/factories/uploads.rb
+++ b/spec/factories/uploads.rb
@@ -54,10 +54,7 @@ FactoryBot.define do
end
trait :attachment_upload do
- transient do
- mount_point :attachment
- end
-
+ mount_point :attachment
model { build(:note) }
uploader "AttachmentUploader"
end