Add min. age to terms of service (#34105)

This commit is contained in:
Eugen Rochko 2025-03-07 12:50:52 +01:00 committed by GitHub
parent feedab26f0
commit 2cabbae132
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 13 additions and 5 deletions

View file

@ -29,6 +29,8 @@ RSpec.describe 'Admin TermsOfService Generates' do
fill_in 'terms_of_service_generator_domain', with: 'host.example'
fill_in 'terms_of_service_generator_jurisdiction', with: 'Europe'
fill_in 'terms_of_service_generator_choice_of_law', with: 'New York'
fill_in 'terms_of_service_generator_min_age', with: '16'
expect { submit_form }
.to change(TermsOfService, :count).by(1)
expect(page)