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:
authorStan Hu <stanhu@gmail.com>2019-06-09 15:56:11 +0300
committerStan Hu <stanhu@gmail.com>2019-06-09 15:56:11 +0300
commitb7e3a1e0409d88c86bf67797749b507a3d480c59 (patch)
tree3b8774ba169415b9fe58449635697dbddb165051 /spec/factories
parent2a01cb79560a861a7e32e9ee11e823f22e181aa1 (diff)
Revert "Merge branch '50070-legacy-attachments' into 'master'"
This reverts commit fd19f887dfeeeedb483c4a4fb32f9f768e89389c, reversing changes made to abb2d4c601d796339c8d7cb0c00946696730f198.
Diffstat (limited to 'spec/factories')
-rw-r--r--spec/factories/uploads.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/spec/factories/uploads.rb b/spec/factories/uploads.rb
index 52f6962f16b..426abdc2a6c 100644
--- a/spec/factories/uploads.rb
+++ b/spec/factories/uploads.rb
@@ -54,7 +54,10 @@ FactoryBot.define do
end
trait :attachment_upload do
- mount_point :attachment
+ transient do
+ mount_point :attachment
+ end
+
model { build(:note) }
uploader "AttachmentUploader"
end