updates error message [#500]
This commit is contained in:
@@ -23,7 +23,7 @@ en:
|
||||
form_errors: "prevented your residence verification"
|
||||
error_verifying_census: "The census of the city of Madrid could not verify your information. Pero revise de information and try again or get in touch with us."
|
||||
error_not_allowed_age: "You need yo be at least 16 years old"
|
||||
error_not_allowed_postal_code: "Please, to verify your account you need to be in the census of the Madrid town."
|
||||
error_not_allowed_postal_code: "To verify your account you need to be in the census of the Madrid town."
|
||||
create:
|
||||
flash:
|
||||
success: "Residence verified"
|
||||
|
||||
@@ -23,7 +23,7 @@ es:
|
||||
form_errors: "evitaron verificar tu residencia"
|
||||
error_verifying_census: "El Padrón de Madrid no pudo verificar tu información. Revisa la información ó ponte en contacto con nosotros."
|
||||
error_not_allowed_age: "Hay que tener al menos 16 años"
|
||||
error_not_allowed_postal_code: "Por favor, para verificarte debes estar empadronado en el municipio de Madrid."
|
||||
error_not_allowed_postal_code: "Para verificarte debes estar empadronado en el municipio de Madrid."
|
||||
create:
|
||||
flash:
|
||||
success: "Residencia verificada"
|
||||
|
||||
@@ -49,7 +49,7 @@ feature 'Residence' do
|
||||
|
||||
click_button 'Verify residence'
|
||||
|
||||
expect(page).to have_content 'Please, to verify your account you need to be in the census of the Madrid town.'
|
||||
expect(page).to have_content 'To verify your account you need to be in the census of the Madrid town.'
|
||||
end
|
||||
|
||||
scenario 'Error on Madrid census' do
|
||||
|
||||
@@ -48,7 +48,7 @@ describe Verification::Residence do
|
||||
residence.postal_code = "13280"
|
||||
residence.valid?
|
||||
expect(residence.errors[:postal_code].size).to eq(1)
|
||||
expect(residence.errors[:postal_code]).to include("Please, to verify your account you need to be in the census of the Madrid town.")
|
||||
expect(residence.errors[:postal_code]).to include("To verify your account you need to be in the census of the Madrid town.")
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user