Fix tests: Add missing actor parameters to Ash operations

This commit is contained in:
Moritz 2026-01-24 01:42:20 +01:00 committed by Simon
parent f993c64c42
commit 0e6b464e0a
Signed by: simon
GPG key ID: 40E7A58C4AA1EDB2
5 changed files with 9 additions and 5 deletions

View file

@ -28,7 +28,7 @@ defmodule Mv.Authorization.ActorTest do
|> Ash.create(actor: actor)
# Load role
{:ok, user_with_role} = Ash.load(user, :role, domain: Mv.Accounts)
{:ok, user_with_role} = Ash.load(user, :role, domain: Mv.Accounts, actor: actor)
# Should return as-is (no additional load)
result = Actor.ensure_loaded(user_with_role)