Skip to content

Commit 9b3e5d3

Browse files
committed
test: update test to run authorization
1 parent 74cead8 commit 9b3e5d3

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

test/ash_postgres_test.exs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ defmodule AshPostgresTest do
1515
test "filter policies are applied in create" do
1616
assert_raise Ash.Error.Forbidden, fn ->
1717
AshPostgres.Test.Post
18-
|> Ash.Changeset.for_create(:create, %{title: "worst"})
18+
|> Ash.Changeset.for_create(:create, %{title: "worst"}, authorize?: true)
1919
|> Ash.create!()
2020
end
2121
end
@@ -39,10 +39,5 @@ defmodule AshPostgresTest do
3939
)
4040
|> Map.get(:title)
4141
end
42-
43-
# post
44-
# |> Ash.Changeset.for_update(:update, %{title: "okay"}, authorize?: true)
45-
# |> Ash.update!()
46-
# |> Map.get(:title)
4742
end
4843
end

0 commit comments

Comments
 (0)