test: remove skipped custom field slug lookup test
This commit is contained in:
parent
7686b63d7f
commit
c264ce122d
1 changed files with 1 additions and 17 deletions
|
|
@ -192,21 +192,5 @@ defmodule Mv.Membership.CustomFieldSlugTest do
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
describe "slug-based lookup (future feature)" do
|
# Slug-based lookup (e.g. CustomField by slug) is not implemented; primary read uses ID.
|
||||||
@tag :skip
|
|
||||||
test "can find custom field by slug", %{actor: actor} do
|
|
||||||
{:ok, custom_field} =
|
|
||||||
CustomField
|
|
||||||
|> Ash.Changeset.for_create(:create, %{
|
|
||||||
name: "Test Field",
|
|
||||||
value_type: :string
|
|
||||||
})
|
|
||||||
|> Ash.create(actor: actor)
|
|
||||||
|
|
||||||
# This test is for future implementation
|
|
||||||
# We might add a custom action like :by_slug
|
|
||||||
found = Ash.get!(CustomField, custom_field.slug, load: [:slug], actor: actor)
|
|
||||||
assert found.id == custom_field.id
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue