diff options
author | Mark Longair <mhl@pobox.com> | 2013-10-04 17:15:16 +0100 |
---|---|---|
committer | Mark Longair <mhl@pobox.com> | 2013-10-04 17:15:16 +0100 |
commit | 62c7844025044413158489554e5b6a4c7dc43bb0 (patch) | |
tree | bac74fe69ebd4d809a32061d42227f6365560db9 /lib/tasks/config_files.rake | |
parent | 7f915bf9153cac94ed2f17fee7e7ea2ee9edce8f (diff) |
Add to fixtures a public body with an accented initial letter
This adds a public body called "Åčçèñtéd Authority" in the
Czech locale (cs) so that we can create tests that exercise,
for example, searching based on an initial letter that has a
multi-byte representation in UTF-8.
An old test for "add mass tags" in the admin needed to be updated
since it implicitly assumed that all the public bodies in the
fixtures had translations in the :en locale.
The tests for loading CSV files of public bodies also needed to
be updated, since they were assuming that public body names
only contained letters in [A-Za-z ]. Since Unicode character
classes aren't easily available in Ruby 1.8 and it makes little
difference to the test, the character class is replaced by '.'.
Diffstat (limited to 'lib/tasks/config_files.rake')
0 files changed, 0 insertions, 0 deletions