* Always show the browse section regardless of featured * Add tests for /pod * Use safe operator if there are no episodes to show * Fix test for new podcast page * Fix test again for podcast page
14 lines
427 B
Ruby
14 lines
427 B
Ruby
FactoryBot.define do
|
|
factory :podcast_episode do
|
|
sequence(:slug) { |n| "slug-#{n}" }
|
|
sequence(:guid) { |n| "guid-#{n}" }
|
|
podcast_id { rand(30) }
|
|
title { rand(30) }
|
|
media_url { Faker::Internet.url }
|
|
website_url { Faker::Internet.url }
|
|
body { Faker::Hipster.paragraph(sentence_count: 1) }
|
|
podcast
|
|
reachable { true }
|
|
published_at { Time.current }
|
|
end
|
|
end
|