Commit graph

842 commits

Author SHA1 Message Date
Tom Hughes
36592f72bc Fix exception when message limit is hit 2014-12-02 21:29:12 +00:00
Tom Hughes
501d13e1c0 Merge branch 'master' into overpass 2014-11-01 12:50:23 +00:00
Tom Hughes
f636391580 Move changeset comment feeds out of the API namespace 2014-10-23 21:40:13 +01:00
Tom Hughes
72a7fc67ca Tidy up changeset comment tests and beef them up a bit 2014-10-23 21:24:51 +01:00
Łukasz Gurdek
14ac1babc2 Changeset discussions
Add support for commenting on changesets with RSS feeds and email
notification of comments to other commenters and people that have
chosen to subscribe to a changeset.
2014-10-23 21:24:51 +01:00
Tom Hughes
3fefae42fc Add some more model tests for notes and note comments 2014-10-16 20:36:40 +01:00
Tom Hughes
8983fb3600 Validate note comments for control characters 2014-10-16 00:59:34 +01:00
Tom Hughes
0fb047589f Add missing event types to note comment fixtures 2014-10-16 00:59:24 +01:00
Tom Hughes
574220187b Test that reserved usernames are not allowed 2014-10-02 19:54:26 +01:00
Tom Hughes
042ecee695 Don't preload the nodes as it seems to break the ordering
Fixes #795
2014-07-29 10:14:08 +01:00
Florian M. Schäfer
f8fccbf8be Let test_note_event pass in timezones other than +00:00 2014-07-24 22:27:16 +01:00
Tom Hughes
c72940684e Fix error resolving relation parents
It's not entirely clear why specifying the foreign key explicitly
fixes this - the value given is what it should default to - but
without this it finds the child relation instead when looking at
the parents of a relation.

Fixes #789
2014-07-24 00:23:45 +01:00
Tom Hughes
c53db246f6 Merge branch 'rails41' 2014-07-21 08:53:44 +01:00
Florian M. Schäfer
212e7153d8 Added tests for wikidata links in the browse helper 2014-07-20 15:03:28 +01:00
Tom Hughes
76ab4dc2f3 Don't assume we know what ID the new block will have 2014-07-04 19:24:25 +01:00
Tom Hughes
dd81b09eba Update for API change in CPK 7.x 2014-07-04 19:24:25 +01:00
Tom Hughes
b13018cc96 Make sure we restore I18n.locale when tests complete 2014-07-04 19:24:25 +01:00
Tom Hughes
28bfb9999f Rename Trace#public to Trace#visible_to_all 2014-07-04 19:24:25 +01:00
Tom Hughes
56d39b06f2 Rename User#public to User#identifiable 2014-07-04 19:24:25 +01:00
Tom Hughes
5bbe1c4aee Improve testing of emails
Make sure we test that everything which should send email does
and that we clear the pending emails afterwards.
2014-07-04 19:21:57 +01:00
Tom Hughes
0cc579b287 Improve blocking of characters not allowed in XML 2014-06-19 00:25:18 +01:00
Tom Hughes
aa00e6b81e Decode entities in the title
They will get reencoded (if necessary) when they are output. Fixes #764.
2014-06-18 09:29:17 +01:00
Tom Hughes
c9e9ef1a89 Rewrite layer parameters in shortlinks correctly
Fixes #762
2014-06-17 21:15:36 +01:00
Tom Hughes
32c385e8d7 Probit control characters in user names 2014-06-15 16:33:26 +01:00
Tom Hughes
a70b61315c Merge branch 'master' into overpass 2014-06-15 14:54:39 +01:00
Štefan Baebler
75e07dc5b8 Added telephone links into tag detail browser
International phone numbers become links using the official URI scheme
as per http://tools.ietf.org/html/rfc3966.

It is not limited to key=phone, so it can be used in other keys as well.
2014-06-15 09:31:04 +01:00
Tom Hughes
c8a23f07db Fix typo 2014-05-24 17:34:19 +01:00
Tom Hughes
85e61568da Try harder to find a name in the right language 2014-05-24 12:52:09 +01:00
Tom Hughes
f3166176d7 Qualify SCALE in tests 2014-05-21 22:43:57 +01:00
Tom Hughes
e010a326a8 Wrap the ID in <bdi> tags for RTL locales 2014-05-19 00:29:08 +01:00
Tom Hughes
5da273027f Isolate object names from the database with a <bdi> tag
Fixes #743
2014-05-18 17:24:38 +01:00
Tom Hughes
a5b296a298 Qualify SCALE in tests 2014-04-27 19:19:16 +01:00
Tom Hughes
1a38e9b315 Don't pass strings to set_fixture_class 2014-04-27 19:16:42 +01:00
Tom Hughes
479b22ca77 Filter out nodes which are too far away 2014-03-16 16:18:13 +00:00
Tom Hughes
0de6885a91 Drop client side parsing of lat/lon parameters
The server always redirects these to a new style link with the
position in the hash, so we don't need to do it client side
2014-03-16 12:56:32 +00:00
Tom Hughes
d65e019823 Add more helper tests 2014-03-05 22:54:59 +00:00
Tom Hughes
0de7fdb4df Add more tests for BrowseHelper 2014-03-01 16:02:06 +00:00
Tom Hughes
109dcfff19 Add tests for BrowseHelper#wikipedia_link 2014-03-01 00:25:33 +00:00
Tom Hughes
42b7c5802d Add tests for OSM.locationCookie 2014-02-28 00:28:26 +00:00
Tom Hughes
bf797f4380 Update osm.js tests for changes and add some more 2014-02-27 19:10:36 +00:00
John Firebaugh
665abc501c Use Konacha for testing JavaScript 2014-02-27 16:03:22 +00:00
Tom Hughes
e83fdf09e2 Add some more tests for library code 2014-02-26 00:33:19 +00:00
Tom Hughes
98184dfb9c Reorganise tests to match modern rails test layout 2014-02-26 00:13:19 +00:00
Tom Hughes
1ea64ea977 Add a test to check that html.dir is sensible in every locale 2014-02-23 00:20:57 +00:00
Tom Hughes
a949f98ced Apparently asin now throws Math::DomainError instead of Errno::EDOM 2014-02-20 09:12:41 +00:00
Tom Hughes
457ba2e5e8 Add some more shortlink tests 2014-02-15 12:46:09 +00:00
Tom Hughes
47841829d8 Improve redirection of shortlinks
If a shortlink includes an object reference then redirect to a new
style browse URL for that object.

Fixes #702
2014-02-15 12:42:52 +00:00
Tom Hughes
25b93471c1 Preserve message details over validation errors
If a validation error occurs while saving a message then make
sure the values are preserved in the new form.
2014-02-04 22:31:44 +00:00
Tom Hughes
ccebb796ab Use api.geonames.org for reverse searches 2014-01-27 21:14:17 +00:00
Tom Hughes
affe17a31a Add a tests for the fixthemap page 2014-01-19 13:52:17 +00:00