Sha256: adc158bb65673c07309f8ce23dcc7fc06f4981d02e37b678f29d51164b36474e

Contents?: true

Size: 360 Bytes

Versions: 11

Compression:

Stored size: 360 Bytes

Contents

FactoryGirl.define do
  factory :upload, class: "S3Relay::Upload" do
    uuid         SecureRandom.uuid
    filename     "cat.png"
    content_type "image/png"
    upload_type  "FileUpload"
  end

  factory :icon_upload, parent: :upload do
    upload_type "IconUpload"
  end

  factory :photo_upload, parent: :upload do
    upload_type "PhotoUpload"
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
s3_relay-0.5.1 test/factories/uploads.rb
s3_relay-0.5.0 test/factories/uploads.rb
s3_relay-0.4.2 test/factories/uploads.rb
s3_relay-0.4.1 test/factories/uploads.rb
s3_relay-0.4.0 test/factories/uploads.rb
s3_relay-0.3.2 test/factories/uploads.rb
s3_relay-0.3.1 test/factories/uploads.rb
s3_relay-0.3.0 test/factories/uploads.rb
s3_relay-0.2.0 test/factories/uploads.rb
s3_relay-0.1.0 test/factories/uploads.rb
s3_relay-0.0.3 test/factories/uploads.rb