# 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 :stylesheet do file { fixture_file_upload(uploader_test_stylesheet) } content_type "text/css" end trait :deleted do deleted_at { Time.current } end end end