summaryrefslogtreecommitdiff
path: root/test/schema
diff options
context:
space:
mode:
Diffstat (limited to 'test/schema')
-rw-r--r--test/schema/register_test.exs8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/schema/register_test.exs b/test/schema/register_test.exs
index 0e9fdf1..00ac413 100644
--- a/test/schema/register_test.exs
+++ b/test/schema/register_test.exs
@@ -3,10 +3,10 @@ defmodule Chessh.Auth.UserRegistrationTest do
use ExUnit.Case
alias Chessh.{Player, Repo}
- @valid_user %{username: "logan", password: "password"}
- @invalid_username %{username: "a", password: "password"}
- @invalid_password %{username: "aasdf", password: "pass"}
- @repeated_username %{username: "LoGan", password: "password"}
+ @valid_user %{username: "logan", password: "password", github_id: 4}
+ @invalid_username %{username: "a", password: "password", github_id: 7}
+ @invalid_password %{username: "aasdf", password: "pass", github_id: 6}
+ @repeated_username %{username: "LoGan", password: "password", github_id: 5}
test "Password must be at least 8 characters and username must be at least 2" do
refute Player.registration_changeset(%Player{}, @invalid_password).valid?