Use configured limit for number of profile fields (#33463)

This commit is contained in:
zunda 2025-01-05 18:47:10 -10:00 committed by GitHub
parent 3bdfa3eb4c
commit f16fbc069a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -864,7 +864,7 @@ RSpec.describe Account do
end
def fields_over_limit
Array.new(5) { { 'name' => 'Name', 'value' => 'Value', 'verified_at' => '01/01/1970' } }
Array.new(described_class::DEFAULT_FIELDS_SIZE + 1) { { 'name' => 'Name', 'value' => 'Value', 'verified_at' => '01/01/1970' } }
end
def fields_empty_name