Fix invalid postal code message

We were using the word "registered" in English as an equivalent of the
Spanish word "empadronado". However, the term "registered" is very
confusing because it might be understood as being registered in the
CONSUL website.

In the message, we're saying "cannot participate" in order to make the
message consistent with the message regarding the required age.
This commit is contained in:
Javi Martín
2021-11-27 17:45:25 +01:00
parent c2e95f6b86
commit a79bbac894
4 changed files with 4 additions and 4 deletions

View File

@@ -142,7 +142,7 @@ describe Verification::Residence do
residence.postal_code = "28101"
expect(residence).not_to be_valid
expect(residence.errors.count).to eq 1
expect(residence.errors[:postal_code]).to eq ["In order to be verified, you must be registered."]
expect(residence.errors[:postal_code]).to eq ["Citizens from this postal code cannot participate"]
end
it "allows any postal code when the setting is blank" do