2
0

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