fix actor in test

This commit is contained in:
Jechol Lee 2024-02-16 09:40:50 +09:00
parent 25d7bba700
commit 38149bb589

View file

@ -240,7 +240,7 @@ defmodule ArchivalWithPolicyTest do
|> Ash.Changeset.for_create(:create, %{post_id: post.id})
|> Api.create!()
assert :ok = author |> Api.destroy!()
assert :ok = author |> Api.destroy!(actor: %{admin: true})
[archived_post] = Api.read!(PostWithArchive)
assert archived_post.id == post.id