FIX: Update test limit for email domain (#21429)

This commit is contained in:
Natalie Tay 2023-05-08 12:19:10 +08:00 committed by GitHub
parent dddbdffea6
commit 7aa2ede17f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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) }