diff options
author | Jarka Košanová <jarka@gitlab.com> | 2019-01-23 21:44:12 +0300 |
---|---|---|
committer | Jarka Košanová <jarka@gitlab.com> | 2019-06-06 16:33:04 +0300 |
commit | 3335918bff211f543ec0f304fbfaf8278daa91d2 (patch) | |
tree | 49ec7f5ace42ae7d7e2347aba4f54b88567f37bf /spec/factories/uploads.rb | |
parent | a05f86cef14dc24df655705e1976c95ebf31fd1c (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.rb | 5 |
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 |