Fixed two failed tests (To get familiar with testing framework).
This commit is contained in:
@ -3,6 +3,7 @@ defmodule BeetRoundServerWeb.BiddingControllerTest do
|
|||||||
|
|
||||||
import BeetRoundServer.BiddingsFixtures
|
import BeetRoundServer.BiddingsFixtures
|
||||||
alias BeetRoundServer.Biddings.Bidding
|
alias BeetRoundServer.Biddings.Bidding
|
||||||
|
import BeetRoundServer.AccountsFixtures, only: [user_scope_fixture: 0]
|
||||||
|
|
||||||
@create_attrs %{
|
@create_attrs %{
|
||||||
amount: 42,
|
amount: 42,
|
||||||
@ -89,7 +90,8 @@ defmodule BeetRoundServerWeb.BiddingControllerTest do
|
|||||||
end
|
end
|
||||||
|
|
||||||
defp create_bidding(_) do
|
defp create_bidding(_) do
|
||||||
bidding = bidding_fixture()
|
scope = user_scope_fixture()
|
||||||
|
bidding = bidding_fixture(scope)
|
||||||
|
|
||||||
%{bidding: bidding}
|
%{bidding: bidding}
|
||||||
end
|
end
|
||||||
|
|||||||
@ -3,6 +3,6 @@ defmodule BeetRoundServerWeb.PageControllerTest do
|
|||||||
|
|
||||||
test "GET /", %{conn: conn} do
|
test "GET /", %{conn: conn} do
|
||||||
conn = get(conn, ~p"/")
|
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
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user