Commit 7e2856fa authored by Micaël Bergeron's avatar Micaël Bergeron

fix ce-to-ee `spec/factories/uploads.rb`

parent 56123f9e
...@@ -5,10 +5,7 @@ FactoryBot.define do ...@@ -5,10 +5,7 @@ FactoryBot.define do
uploader "AvatarUploader" uploader "AvatarUploader"
mount_point :avatar mount_point :avatar
secret nil secret nil
<<<<<<< HEAD
store ObjectStorage::Store::LOCAL store ObjectStorage::Store::LOCAL
=======
>>>>>>> upstream/master
# we should build a mount agnostic upload by default # we should build a mount agnostic upload by default
transient do transient do
...@@ -19,32 +16,20 @@ FactoryBot.define do ...@@ -19,32 +16,20 @@ FactoryBot.define do
path { File.join("uploads/-/system", model.class.to_s.underscore, mount_point.to_s, 'avatar.jpg') } path { File.join("uploads/-/system", model.class.to_s.underscore, mount_point.to_s, 'avatar.jpg') }
trait :personal_snippet_upload do trait :personal_snippet_upload do
<<<<<<< HEAD
model { build(:personal_snippet) }
path { File.join(secret, filename) }
uploader "PersonalFileUploader"
=======
uploader "PersonalFileUploader" uploader "PersonalFileUploader"
path { File.join(secret, filename) } path { File.join(secret, filename) }
model { build(:personal_snippet) } model { build(:personal_snippet) }
>>>>>>> upstream/master
secret SecureRandom.hex secret SecureRandom.hex
end end
trait :issuable_upload do trait :issuable_upload do
<<<<<<< HEAD
path { File.join(secret, filename) }
uploader "FileUploader" uploader "FileUploader"
path { File.join(secret, filename) }
secret SecureRandom.hex secret SecureRandom.hex
end end
trait :object_storage do trait :object_storage do
store ObjectStorage::Store::REMOTE store ObjectStorage::Store::REMOTE
=======
uploader "FileUploader"
path { File.join(secret, filename) }
secret SecureRandom.hex
>>>>>>> upstream/master
end end
trait :namespace_upload do trait :namespace_upload do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment