Skip to content

Commit 0f9a013

Browse files
committed
chore: fix tests
1 parent a7fbfe3 commit 0f9a013

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

test/resource_generator_test.exs

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,18 +32,31 @@ defmodule AshPostgres.ResourceGeenratorTests do
3232
domain: MyApp.Accounts,
3333
data_layer: AshPostgres.DataLayer
3434
35+
actions do
36+
defaults([:read, :destroy, create: :*, update: :*])
37+
end
38+
3539
postgres do
3640
table("example_table")
3741
repo(AshPostgres.TestRepo)
3842
end
3943
4044
attributes do
41-
uuid_primary_key(:id)
42-
attribute(:name, :string)
43-
attribute(:age, :integer)
45+
uuid_primary_key :id do
46+
public?(true)
47+
end
48+
49+
attribute :name, :string do
50+
public?(true)
51+
end
52+
53+
attribute :age, :integer do
54+
public?(true)
55+
end
4456
4557
attribute :email, :string do
4658
sensitive?(true)
59+
public?(true)
4760
end
4861
end
4962
end

0 commit comments

Comments
 (0)