FactoryBot.define do
  image = Rack::Test::UploadedFile.new(
    Rails.root.join("spec", "support", "fixtures", "images", "image1.jpeg"),
    "image/jpeg",
  )

  factory :podcast do
    title           { Faker::Beer.name }
    image           { image }
    description     { Faker::Hipster.paragraph(1) }
    slug            { "slug-#{rand(10_000)}" }
    feed_url        { Faker::Internet.url }
    main_color_hex  { "ffffff" }
  end
end
