mirror of
https://github.com/ash-project/ash_postgres.git
synced 2024-09-20 13:33:50 +12:00
14 lines
385 B
Elixir
14 lines
385 B
Elixir
defmodule AshPostgresTest do
|
|
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
|
|
end
|