mirror of
https://github.com/ash-project/ash_archival.git
synced 2024-09-19 13:02:55 +12:00
chore: reproduction for issue #57.
This commit is contained in:
parent
51a53143ab
commit
8c2e5c85fb
1 changed files with 10 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue