Sha256: fab79339faaa30163cb892c30f86177b58f3b90e02865d3ad1c83745dae7adc1

Contents?: true

Size: 555 Bytes

Versions: 1

Compression:

Stored size: 555 Bytes

Contents

FactoryBot.define do
  factory :upload, class: "S3Relay::Upload" do
    uuid { SecureRandom.uuid }
  end

  factory :file_upload, parent: :upload do
    filename     { "cat.png" }
    content_type { "image/png" }
    upload_type  { "FileUpload" }
  end

  factory :icon_upload, parent: :upload do
    filename     { "cat.png" }
    content_type { "image/png" }
    upload_type  { "IconUpload" }
  end

  factory :photo_upload, parent: :upload do
    filename     { "cat.png" }
    content_type { "image/png" }
    upload_type  { "PhotoUpload" }
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
s3_relay-0.7.0 test/factories/uploads.rb