From f16fbc069a7d07f2b60a79ba624ee452951457e5 Mon Sep 17 00:00:00 2001 From: zunda Date: Sun, 5 Jan 2025 18:47:10 -1000 Subject: [PATCH] Use configured limit for number of profile fields (#33463) --- spec/models/account_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/models/account_spec.rb b/spec/models/account_spec.rb index 5ba39848b7..967809b8e1 100644 --- a/spec/models/account_spec.rb +++ b/spec/models/account_spec.rb @@ -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