Skip to content

Commit

Permalink
chore: modify test to show error on anonymous aggregates
Browse files Browse the repository at this point in the history
  • Loading branch information
zachdaniel committed Sep 23, 2024
1 parent 50f77be commit 007df2c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/calculation_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -293,8 +293,8 @@ defmodule AshSqlite.CalculationTest do
|> Ash.create!()
end)

author = Ash.load!(author, :post_titles)

assert author.post_titles == post_titles
assert_raise Ash.Error.Invalid, ~r/does not support using aggregates/, fn ->
Ash.load!(author, :post_titles)
end
end
end

0 comments on commit 007df2c

Please sign in to comment.