ash_postgres/test/ash_postgres_test.exs

15 lines
385 B
Elixir
Raw Normal View History

2019-12-05 03:58:20 +13:00
defmodule AshPostgresTest do
2022-12-01 14:59:18 +13:00
use AshPostgres.RepoCase, async: false
test "transaction metadata is given to on_transaction_begin" do
AshPostgres.Test.Post
|> Ash.Changeset.new(%{title: "title"})
|> AshPostgres.Test.Api.create!()
assert_receive %{
type: :create,
metadata: %{action: :create, actor: nil, resource: AshPostgres.Test.Post}
}
end
2019-10-07 09:36:18 +13:00
end