1
0
mirror of https://github.com/danbee/chess synced 2025-03-04 08:39:06 +00:00
This commit is contained in:
Daniel Barber 2018-09-08 15:05:07 -04:00
parent 7280c98cc9
commit 3f1241e3a7
Signed by: danbarber
GPG Key ID: 931D8112E0103DD8

View File

@ -34,7 +34,7 @@ defmodule ChessWeb.GameControllerTest do
assert redirected_to(conn) == game_path(conn, :show, game) assert redirected_to(conn) == game_path(conn, :show, game)
end end
test "sends and email when game is created", %{conn: conn} do test "sends an email when game is created", %{conn: conn} do
opponent = insert(:user, %{name: "Daruk", email: "daruk@goron.city"}) opponent = insert(:user, %{name: "Daruk", email: "daruk@goron.city"})
attrs = %{"opponent_id" => opponent.id} attrs = %{"opponent_id" => opponent.id}