debian-mirror-gitlab/spec/factories/uploads.rb
2017-08-17 22:00:37 +05:30

8 lines
192 B
Ruby

FactoryGirl.define do
factory :upload do
model { build(:project) }
path { "uploads/system/project/avatar/avatar.jpg" }
size 100.kilobytes
uploader "AvatarUploader"
end
end