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
|
||||
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
|
||||
|
||||
@ -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
|
||||
|
||||
Reference in New Issue
Block a user