ash_postgres/test/enum_test.exs

14 lines
308 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.Post
2021-04-22 05:49:53 +12:00
require Ash.Query
test "valid values are properly inserted" do
Post
|> Ash.Changeset.for_create(:create, %{title: "title", status: :open})
|> Ash.create!()
2021-04-22 05:49:53 +12:00
end
end