Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
barnabasJ committed Jun 3, 2024
1 parent 76f58b6 commit 152deba
Showing 1 changed file with 4 additions and 16 deletions.
20 changes: 4 additions & 16 deletions test/ash_rbac_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,7 @@ defmodule AshRbacTest do
created_at: %Ash.ForbiddenField{field: :created_at, type: :attribute},
id: _,
number: %Ash.NotLoaded{type: :calculation},
updated_at: %Ash.ForbiddenField{field: :updated_at, type: :attribute},
aggregates: %{},
calculations: %{}
updated_at: %Ash.ForbiddenField{field: :updated_at, type: :attribute}
}
]
} =
Expand All @@ -97,11 +95,7 @@ defmodule AshRbacTest do
created_at: nil,
id: _,
number: %Ash.NotLoaded{},
updated_at: nil,
aggregates: %{},
calculations: %{
{:__ash_fields_are_visible__, [:admin_only]} => false
}
updated_at: nil
}
]
} =
Expand All @@ -126,11 +120,7 @@ defmodule AshRbacTest do
created_at: nil,
id: _,
number: %Ash.NotLoaded{type: :calculation},
updated_at: nil,
aggregates: %{},
calculations: %{
{:__ash_fields_are_visible__, [:admin_only_number]} => false
}
updated_at: nil
}
]
} =
Expand All @@ -156,9 +146,7 @@ defmodule AshRbacTest do
created_at: nil,
id: _,
number: %Ash.NotLoaded{type: :calculation},
updated_at: nil,
aggregates: %{},
calculations: %{}
updated_at: nil
}
]
} =
Expand Down

0 comments on commit 152deba

Please sign in to comment.