Skip to content

Commit

Permalink
Fixup symbol with coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
svevang committed Aug 9, 2023
1 parent fd90054 commit c558e10
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/podcast.rb
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def self.by_prx_series(series)
def self.release!(options = {})
Rails.logger.tagged("Podcast.release!") do
PublishingPipelineState.expire_pipelines!
PublishingPipelineState.retry_failed!
PublishingPipelineState.retry_failed_pipelines!
Episode.release_episodes!(options)
end
end
Expand Down
9 changes: 9 additions & 0 deletions test/models/podcast_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,15 @@
end
obj.verify
end

it "retries latest publishing pipelines with errors" do
obj = MiniTest::Mock.new
obj.expect :call, nil
PublishingPipelineState.stub(:retry_failed_pipelines!, obj) do
Podcast.release!
end
obj.verify
end
end
end

Expand Down

0 comments on commit c558e10

Please sign in to comment.