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
Toby Murray
c78853a97e
Changing the note search limit from 9999 to 10000
...
The documentation says the limit is 10000 which seems like a
nicer round number anyway.
2014-01-19 13:40:11 +00:00
Tom Hughes
42b329ed82
Replace the country table with a static XML countries file
...
Storing the countries in the database is overkill, so just use a
copy of the geonames countryInfo data that is loaded into a hash
the first time it is used.
2014-01-17 19:25:58 +00:00
Tom Hughes
933b091330
Highlight erroneous fields by adding a class to them
...
The default rails scheme for highlighting errors is to wrap the
field in a div, but that changes the structure of the page and can
change the meaning of CSS rules applied to the fields.
As an alternative we now apply a class to the fields, and use that
in the CSS to apply a highlight.
2014-01-15 21:41:16 +00:00
Tom Hughes
45618726ef
Reenable the note search API
...
Add a postgress freetext index on the note comments, and enable
note searching using freetext matching.
2014-01-15 19:58:58 +00:00
Tom Hughes
1e2b99a75b
Disable notes search until it can be made scalable
2014-01-09 08:41:59 +00:00
Tom Hughes
b93f79f5a0
Add functions tests for the oauth_clients controller
2013-12-08 21:54:21 +00:00
Tom Hughes
f8e645fc03
Remove stub test for non-existent controller
2013-12-08 19:15:12 +00:00
Tom Hughes
5d6a47929c
Don't show lat/lon for a deleted node, in case it is redacted
...
Fixes #642
2013-12-08 11:27:29 +00:00
Tom Hughes
3a6dc176f8
Test XHR rendering of pages which can load in the sidebar
2013-12-07 17:40:19 +00:00
Tom Hughes
04ad0f6251
Do basic testing of all site controller methods
2013-12-07 17:21:17 +00:00
Tom Hughes
83b93b9c5a
Add some more unit tests for the Trace model
2013-12-07 11:12:56 +00:00
Simon Legner
1d1f194d59
Extend API to allow changesets to be queried by ids
...
Make changesets queryable by specifying a list of ids, for example:
/api/0.6/changesets?changesets=1,2,3
This condition may be combined with others in the normal way.
2013-12-05 18:06:35 +00:00
Tom Hughes
0f2958aed4
Report an error if a bogus limit value is passed to a notes API call
2013-12-05 17:57:12 +00:00
Tom Hughes
c866d28fd4
Test get_nodes_undelete methods of the OldWay model
2013-12-05 17:49:06 +00:00
Tom Hughes
1f52e5227f
Add tests for member methods on relation models
2013-12-05 00:38:25 +00:00
Tom Hughes
cd81a3f605
Add tests for node methods on way models
2013-12-04 21:44:39 +00:00
Tom Hughes
5ed8ee39e9
Add tests for tag methods on object models
2013-12-04 18:39:07 +00:00
Tom Hughes
e418075e26
Replace some legacy routes with redirects
2013-12-03 19:08:21 +00:00
John Firebaugh
d95361bcb9
Support legacy bbox param on /history as well
...
Fixes #586
2013-12-02 11:38:54 -08:00
Tom Hughes
aff0583a34
Drop monkey patch now we're using option style redirects
...
Option style redirects escape path parameters correctly, so we
can drop out monkey patch.
2013-12-01 20:54:52 +00:00
Tom Hughes
61bb31ebdd
Preserve the bounding box when redirecting history URLs
...
Using the options style for the redirect seems to cause parameters
to be preserved, which the path style of redirect does not.
2013-12-01 19:59:57 +00:00
Tom Hughes
315d1dab54
Redirect /?query= to /search?query=
2013-11-30 12:38:44 +00:00
Tom Hughes
a9f4549327
Tidy up the OAuth authorization screens
...
Make sure all messages are translatable, separate errors from
user initiated denial of authorization.
2013-11-30 12:25:22 +00:00
Tom Hughes
fb9b4edcdd
Add tests for new redirects and fix a few bugs in the redirects
2013-11-28 08:56:52 +00:00
Tom Hughes
3cd5f45e08
Simplify browse routes and make routes more consistent
...
This gets rid of the /browse/ prefix and uses /history consistently
for all routes that show a list of changesets.
2013-11-28 00:14:07 +00:00
Tom Hughes
fbf92b17a0
Add test for redirect routes
2013-11-25 21:13:59 +00:00
John Firebaugh
e91956d0f7
Fix test failures
2013-11-19 10:30:18 -08:00
John Firebaugh
44629832dd
Merge branch 'master' into redesign
...
Conflicts:
vendor/assets/leaflet/leaflet.hash.js
vendor/assets/leaflet/leaflet.js
2013-11-19 09:42:47 -08:00
Tom Hughes
41e45bad51
Remove the _osm_username cookie and session validation logic
...
This was a temporary hack to workaround issues with sessions getting
mixed up at the time of the rails 3.1 upgrade, but logs indicate that
whatever the original problem was it is no longer occurring.
2013-11-17 21:52:39 +00:00
John Firebaugh
2b4f8e92c9
Merge branch 'master' into redesign
...
Conflicts:
app/controllers/browse_controller.rb
app/views/layouts/_head.html.erb
config/environments/production.rb
config/routes.rb
2013-11-15 16:47:49 -08:00
John Firebaugh
15ff7b9843
Remove unused
2013-11-06 13:05:51 -08:00
Tom Hughes
d85fac567b
Add tests for trace#data
2013-10-16 00:46:20 +01:00
Tom Hughes
39a54f8c14
Test user#delete
2013-10-15 21:43:50 +01:00
Tom Hughes
b0fa1cf936
Test user#set_status
2013-10-15 21:39:07 +01:00
Tom Hughes
1abb7bfa56
Test user#reset_password
2013-10-15 21:27:25 +01:00
Tom Hughes
f892313c48
Test user#go_public
2013-10-15 21:14:08 +01:00
John Firebaugh
5835350879
Restore raw latlon search result
2013-10-15 21:01:14 +01:00
Tom Hughes
3e985f3ab9
Add more tests for hidden diary entries and comments
2013-10-15 19:21:39 +01:00
Tom Hughes
4f05b6a8ac
Add tests for diary_entry#comments
2013-10-15 18:24:51 +01:00