Fixed two failed tests (To get familiar with testing framework).

This commit is contained in:
2026-02-12 10:42:40 +01:00
parent 9709dbabe2
commit 647da6c9d7
2 changed files with 4 additions and 2 deletions

View File

@ -3,6 +3,7 @@ defmodule BeetRoundServerWeb.BiddingControllerTest do
import BeetRoundServer.BiddingsFixtures
alias BeetRoundServer.Biddings.Bidding
import BeetRoundServer.AccountsFixtures, only: [user_scope_fixture: 0]
@create_attrs %{
amount: 42,
@ -89,7 +90,8 @@ defmodule BeetRoundServerWeb.BiddingControllerTest do
end
defp create_bidding(_) do
bidding = bidding_fixture()
scope = user_scope_fixture()
bidding = bidding_fixture(scope)
%{bidding: bidding}
end

View File

@ -3,6 +3,6 @@ defmodule BeetRoundServerWeb.PageControllerTest do
test "GET /", %{conn: conn} do
conn = get(conn, ~p"/")
assert html_response(conn, 200) =~ "Peace of mind from prototype to production"
assert html_response(conn, 200) =~ "BeetRound · Das grüne Zebra"
end
end