Sha256: e51579352980cd72b6fe09ff8e8f80295773dd6467a5574ca9a091ace897d900
Contents?: true
Size: 494 Bytes
Versions: 87
Compression:
Stored size: 494 Bytes
Contents
# frozen_string_literal: true FactoryBot.define do factory :system_download, class: "Renalware::System::Download" do accountable name { Faker::File.file_name } description { Faker::Lorem.sentence } trait :with_file do after(:build) do |help| help.file.attach( io: File.open(Renalware::Engine.root.join("spec", "fixtures", "files", "dog.jpg")), filename: "dog.jpg", content_type: "image./jpg" ) end end end end
Version data entries
87 entries across 87 versions & 1 rubygems