From c04842466542f1c06087a833f2812d9ee6067152 Mon Sep 17 00:00:00 2001 From: Sam Vevang Date: Tue, 3 Oct 2023 12:57:41 -0500 Subject: [PATCH] Fixup test api response join --- test/models/apple/episode_test.rb | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/test/models/apple/episode_test.rb b/test/models/apple/episode_test.rb index ed60f5486..d5eaa994b 100644 --- a/test/models/apple/episode_test.rb +++ b/test/models/apple/episode_test.rb @@ -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