docbrown/spec/factories/podcast_episodes.rb
Andy Zhao 5fab2f86b0
Always show the browse section of podcasts regardless of featured (#16329)
* 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
2022-03-22 12:56:54 -04:00

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