* Don't hide podcasts if they have reachable episodes Recheck episodes' reachability after the podcast status is set to unreachable * Update db/schema.rb * Fix GetEpisodesJob specs * Fix stories spec * Episodes are reachable even if the podcast is unreachable * Improve the Podcast.reachable query * Fix podcasts root page spec * Add index concurrently
9 lines
261 B
Ruby
9 lines
261 B
Ruby
RSpec.shared_examples "#enqueues_job" do |queue_name, args|
|
|
describe "#perform_later" do
|
|
it "enqueues the job" do
|
|
expect do
|
|
described_class.perform_later(args)
|
|
end.to have_enqueued_job.with(args).on_queue(queue_name)
|
|
end
|
|
end
|
|
end
|