mirror of
https://github.com/danbee/chess
synced 2025-03-04 08:39:06 +00:00
19 lines
395 B
Elixir
19 lines
395 B
Elixir
defmodule Chess.GameTest do
|
|
use Chess.ModelCase
|
|
|
|
alias Chess.Game
|
|
|
|
@valid_attrs %{board: %{}}
|
|
@invalid_attrs %{}
|
|
|
|
test "changeset with valid attributes" do
|
|
changeset = Game.changeset(%Game{}, @valid_attrs)
|
|
assert changeset.valid?
|
|
end
|
|
|
|
test "changeset with invalid attributes" do
|
|
changeset = Game.changeset(%Game{}, @invalid_attrs)
|
|
refute changeset.valid?
|
|
end
|
|
end
|