Sha256: 981e5a3427163fc78889ba65377c246858fc31da136dd7734aeb7b12b971a55e

Contents?: true

Size: 342 Bytes

Versions: 2

Compression:

Stored size: 342 Bytes

Contents

# frozen_string_literal: true

FactoryBot.define do
  factory :asset, class: "Archangel::Asset" do
    site
    sequence(:file_name) { |n| "image-#{n}.jpg" }
    file { fixture_file_upload(uploader_test_image) }
    content_type { "image/jpg" }
    file_size { 123 }

    trait :deleted do
      deleted_at { Time.current }
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
archangel-0.4.0 lib/archangel/testing_support/factories/archangel_assets.rb
archangel-0.3.0 lib/archangel/testing_support/factories/archangel_assets.rb