diff --git a/test/teiserver_web/controllers/api/spads_controller_test.exs b/test/teiserver_web/controllers/api/spads_controller_test.exs index 5f8d5752c..9e432862d 100644 --- a/test/teiserver_web/controllers/api/spads_controller_test.exs +++ b/test/teiserver_web/controllers/api/spads_controller_test.exs @@ -52,8 +52,10 @@ defmodule TeiserverWeb.API.SpadsControllerTest do }) Client.login(user, :spring, "127.0.0.1") + lobby_id = make_lobby(%{name: "Test", founder_id: user.id, founder_name: user.name}) + Client.join_battle(user.id, lobby_id, true) conn = get(conn, Routes.ts_spads_path(conn, :get_rating, user.id, "Team"))