From 817d340f024f6f1dbaa3bb9f9a11ab08f576dc9d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20W=C3=B6ginger?= Date: Sun, 22 Dec 2024 23:07:32 +0100 Subject: [PATCH] fixup --- test/radiator/resources_test.exs | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/test/radiator/resources_test.exs b/test/radiator/resources_test.exs index 75397f9d..6a1001a1 100644 --- a/test/radiator/resources_test.exs +++ b/test/radiator/resources_test.exs @@ -52,10 +52,17 @@ defmodule Radiator.ResourcesbTest do url_text = "https://hexdocs.pm" node = OutlineFixtures.node_fixture() old_url = url_fixture(node_id: node.uuid) + episode_id = node.episode_id - assert [%Url{url: ^url_text, start_bytes: 42, size_bytes: 42}] = + assert [%Url{url: ^url_text, start_bytes: 42, size_bytes: 42, episode_id: ^episode_id}] = Resources.rebuild_node_urls(node.uuid, [ - %{url: url_text, start_bytes: 42, size_bytes: 42} + %{ + url: url_text, + start_bytes: 42, + size_bytes: 42, + node_id: node.uuid, + episode_id: episode_id + } ]) assert_raise Ecto.NoResultsError, fn -> Resources.get_url!(old_url.id) end