debian-mirror-gitlab/spec/factories/uploads.rb

9 lines
192 B
Ruby
Raw Normal View History

2017-08-17 22:00:37 +05:30
FactoryGirl.define do
factory :upload do
model { build(:project) }
path { "uploads/system/project/avatar/avatar.jpg" }
size 100.kilobytes
uploader "AvatarUploader"
end
end