Skip to content

Commit

Permalink
test: add tenant in aggregate test
Browse files Browse the repository at this point in the history
  • Loading branch information
zachdaniel committed Feb 27, 2025
1 parent f70cd70 commit 55d9b95
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/aggregate_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ defmodule AshSql.AggregateTest do
assert Ash.load!(user, :count_visited, tenant: "org_#{org.id}")
|> then(& &1.count_visited) == 4

assert Ash.load!(org, :total_posts)
|> then(& &1.total_posts) == 4
assert Ash.load!(org, :total_posts, tenant: "org_#{org.id}")
|> then(& &1.total_posts) == 0

assert Ash.load!(org, :total_users_posts, tenant: "org_#{org.id}")
|> then(& &1.total_users_posts) == 4
Expand Down

0 comments on commit 55d9b95

Please sign in to comment.