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