Files
nairobi/app/models
Javi Martín 006269a94b Simplify tests validating postal codes
We weren't using the `be_valid` matcher because we had errors in the
census data.

Removing the `before_validation` callback and using a method to get the
census data instead allows us to stub the `census_data` method in the
tests, and so we can use the `be_valid` matcher instead of calling
`valid?` manually and then checking for errors.
2021-12-16 13:57:00 +01:00
..
2021-08-16 16:31:04 +02:00
2021-03-02 13:15:15 +01:00
2021-10-01 16:19:10 +02:00
2020-12-16 11:43:17 +01:00
2021-04-08 17:23:30 +02:00
2019-03-27 15:22:14 +01:00
2021-04-13 13:52:18 +02:00
2019-10-23 14:39:31 +02:00
2019-03-14 17:25:43 +01:00
2019-04-29 13:08:43 -05:00
2021-08-16 16:31:04 +02:00
2020-12-02 12:13:02 +01:00
2020-04-09 07:11:53 +10:00
2021-08-16 16:31:04 +02:00
2021-08-16 16:31:04 +02:00
2021-08-16 16:31:04 +02:00
2019-10-25 19:29:12 +02:00
2017-12-15 19:21:02 +01:00
2021-01-12 14:50:37 +01:00