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),