Skip to content

Commit

Permalink
Fixup test api response join
Browse files Browse the repository at this point in the history
  • Loading branch information
svevang committed Oct 3, 2023
1 parent bfce4b1 commit c048424
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion test/models/apple/episode_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,14 @@
mock = Minitest::Mock.new
mock.expect(:call, [], [apple_api, apple_show, [apple_episode]])

apple_api.stub(:bridge_remote_and_retry, nil) do
apple_api.stub(:bridge_remote_and_retry!, [{
request_metadata: {
apple_episode_id: apple_episode.apple_id,
guid: apple_episode.guid
},
api_url: "asdf/",
api_parameters: "ARBITRARY"
}.with_indifferent_access]) do
Apple::Episode.stub(:poll_episode_state, mock) do
Apple::Episode.publish(apple_api, apple_show, [apple_episode])
end
Expand Down

0 comments on commit c048424

Please sign in to comment.