chore: reproduction for issue #57.

This commit is contained in:
James Harton 2024-09-02 12:57:12 +12:00
parent 51a53143ab
commit 8c2e5c85fb
Signed by: james
GPG key ID: 90E82DAA13F624F4

View file

@ -293,4 +293,14 @@ defmodule ArchivalTest do
assert archived_comment.id == comment.id
assert archived_comment.archived_at
end
test "destroyed records can be returned" do
author =
Author
|> Ash.Changeset.for_create(:create)
|> Ash.create!()
assert {:ok, %{archived_at: archived_at}} = Ash.destroy(author, return_destroyed?: true)
assert archived_at
end
end