From cc311e6f775e8f4a8565604a187aec9579f0034c Mon Sep 17 00:00:00 2001 From: Rafael Dantas Justo Date: Fri, 4 Sep 2026 09:00:32 -0300 Subject: [PATCH] Test: Create a rating custom field in the all-fields case The API stopped accepting number-decimal fields on the project entity, so the case now uses a rating field with its own options. --- projects/custom_field_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/projects/custom_field_test.go b/projects/custom_field_test.go index ed0102b..4b5b625 100644 --- a/projects/custom_field_test.go +++ b/projects/custom_field_test.go @@ -30,13 +30,13 @@ func TestCustomFieldCreate(t *testing.T) { name: "all fields", input: projects.CustomFieldCreateRequest{ Name: fmt.Sprintf("test%d%d", time.Now().UnixNano(), rand.Intn(100)), - Type: projects.CustomFieldTypeNumberDecimal, + Type: projects.CustomFieldTypeRating, Entity: projects.CustomFieldEntityProject, Description: new("integration test custom field"), Required: new(false), ProjectID: &testResources.ProjectID, - Options: projects.CustomFieldOptionsNumberDecimal{ - DecimalPoints: new(2), + Options: projects.CustomFieldOptionsRating{ + Icon: "star", }, CurrencyCode: new("USD"), Unit: new(projects.CustomFieldUnitPercent),