From 7aa2ede17f1433b693d9319d769dbd7abfc81691 Mon Sep 17 00:00:00 2001 From: Natalie Tay Date: Mon, 8 May 2023 12:19:10 +0800 Subject: [PATCH] FIX: Update test limit for email domain (#21429) --- spec/models/group_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/models/group_spec.rb b/spec/models/group_spec.rb index d4fe873d05a..d2f9ad1f0af 100644 --- a/spec/models/group_spec.rb +++ b/spec/models/group_spec.rb @@ -6,9 +6,9 @@ RSpec.describe Group do let(:group) { Fabricate(:group) } describe "Validations" do - it { is_expected.to allow_value("#{"a" * 96}.com").for(:automatic_membership_email_domains) } + it { is_expected.to allow_value("#{"a" * 996}.com").for(:automatic_membership_email_domains) } it do - is_expected.not_to allow_value("#{"a" * 97}.com").for(:automatic_membership_email_domains) + is_expected.not_to allow_value("#{"a" * 997}.com").for(:automatic_membership_email_domains) end it { is_expected.to validate_length_of(:bio_raw).is_at_most(3000) } it { is_expected.to validate_length_of(:membership_request_template).is_at_most(500) }