ash_postgres/test/enum_test.exs

14 lines
299 B
Elixir
Raw Normal View History

2021-04-22 05:49:53 +12:00
defmodule AshPostgres.EnumTest do
@moduledoc false
use AshPostgres.RepoCase, async: false
alias AshPostgres.Test.{Api, Post}
require Ash.Query
test "valid values are properly inserted" do
Post
|> Ash.Changeset.new(%{title: "title", status: :open})
|> Api.create!()
end
end