updates error message [#500]

This commit is contained in:
rgarcia
2015-09-24 17:22:38 +02:00
parent e9d4acacd7
commit efd5f11dba
4 changed files with 4 additions and 4 deletions

View File

@@ -23,7 +23,7 @@ en:
form_errors: "prevented your residence verification" 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_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_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: create:
flash: flash:
success: "Residence verified" success: "Residence verified"

View File

@@ -23,7 +23,7 @@ es:
form_errors: "evitaron verificar tu residencia" 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_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_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: create:
flash: flash:
success: "Residencia verificada" success: "Residencia verificada"

View File

@@ -49,7 +49,7 @@ feature 'Residence' do
click_button 'Verify residence' 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 end
scenario 'Error on Madrid census' do scenario 'Error on Madrid census' do

View File

@@ -48,7 +48,7 @@ describe Verification::Residence do
residence.postal_code = "13280" residence.postal_code = "13280"
residence.valid? residence.valid?
expect(residence.errors[:postal_code].size).to eq(1) 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
end end