Commit graph

549 commits

Author SHA1 Message Date
John Firebaugh
aaeca5b534 Use reverse geocoders for any lat/lon queries
This simplifies the implementation, allows code sharing with
"Where am I?", and produces friendlier results for lat/lon
searches (actual reverse geocode results rather than a raw
lat/lon display).
2013-10-13 19:30:38 +01:00
John Firebaugh
efc6aaf215 Remove vestigial routes
Namefinder support was removed in 1a0728ec7b.
2013-10-13 19:23:15 +01:00
Tom Hughes
7de32f3cd5 Add a basic test for browse#note 2013-10-01 19:34:36 +01:00
Tom Hughes
25720e3ee3 Make sure the "terms seen" tests actually run 2013-09-29 15:43:16 +01:00
Tom Hughes
5fc397935c Fix routing of changeset feed 2013-09-23 13:58:59 +01:00
Tom Hughes
038c341918 Allow GET as well as POST for oauth#request_token and oauth#access_token 2013-09-23 13:47:05 +01:00
Tom Hughes
57219d516a Fix routing of RSS feeds 2013-09-23 11:05:35 +01:00
Tom Hughes
3b34f700f1 Alloe GET as well as POST for oauth#revoke and oauth#authorize 2013-09-22 18:33:26 +01:00
Tom Hughes
90875bb08a Always allow %{attribute} in model validation error messages 2013-09-21 12:03:53 +01:00
Tom Hughes
b7e795e1e1 Set hostname for signed requests correctly 2013-09-21 12:03:53 +01:00
Tom Hughes
75795125ad Remove deprecated assert_blank and assert_present from tests 2013-09-21 12:03:53 +01:00
Tom Hughes
70448559b2 Remove format specifier from RSS feed route tests 2013-09-21 12:03:53 +01:00
Tom Hughes
321f8cecdc RoutingError is now UrlGenerationError 2013-09-21 11:35:46 +01:00
Tom Hughes
6c51b3cc0a Replace deprecated finder methods 2013-09-21 11:35:46 +01:00
Tom Hughes
d8399d3e18 IntegrationTest is now in ActionDispatch not ActionController 2013-09-21 11:35:46 +01:00
Tom Hughes
bd8d207ea4 Rails now defaults to using PATCH for updates 2013-09-21 11:35:46 +01:00
Tom Hughes
f0feca800d Replace attr_accessible with strong parameters 2013-09-21 11:35:46 +01:00
Tom Hughes
984c6dc114 Update to rails 4.0.0 2013-09-21 11:35:45 +01:00
Tom Hughes
40b452ac74 Use a view to build the trace RSS feed and get rid of OSM::GeoRSS 2013-09-18 18:23:03 +01:00
Tom Hughes
9701c6210c Fix test to make sure it picks up the right token 2013-08-20 22:46:53 +01:00
Tom Hughes
56fd5c4d90 Merge remote-tracking branch 'osmlab/welcome-2' 2013-08-18 14:50:36 +01:00
Tom Hughes
031ad4f4d5 Improve tests for user details API responses 2013-08-16 21:35:54 +01:00
Tom Hughes
b9daf06684 Upgrade passwords to the latest hashing scheme on login 2013-08-14 00:24:33 +01:00
Tom Hughes
15d29c646b Strengthen password hashing algorithm 2013-08-14 00:23:03 +01:00
Tom Hughes
2b88141cb3 Update tests with new URL for mapnik exports 2013-08-13 00:34:05 +01:00
John Firebaugh
b825f4826a Fix referer params for welcome page 2013-08-12 13:34:46 -07:00
John Firebaugh
3ca642271a Redirect /edit and /export with old-style edit params 2013-08-12 13:34:46 -07:00
John Firebaugh
bda941f49d Clean up tests 2013-08-12 13:34:45 -07:00
John Firebaugh
091473602b Handle expired confirmation tokens 2013-08-12 13:34:45 -07:00
John Firebaugh
2a3bc0a387 Hook up user confirmation page 2013-08-12 13:34:44 -07:00
John Firebaugh
c5fc21e6a6 Inline validation errors on sign up page 2013-08-12 13:34:44 -07:00
John Firebaugh
58cd5bfb11 Remove unnecessary div/class/css 2013-08-12 13:34:43 -07:00
John Firebaugh
24422a3baf Move pre-sign up content to sign up page 2013-08-12 13:34:42 -07:00
John Firebaugh
2690342b08 Reduce welcome email to minimal text
Instead, redirect newly-confirmed users to the welcome
page. If confirmation is not required, redirect immediately
and don't send an email.
2013-08-12 13:34:40 -07:00
John Firebaugh
e3aaa6dd4b Add welcome page based on http://osmlab.github.io/welcome-osm/ 2013-08-12 13:34:40 -07:00
Tom Hughes
e84ed734aa Update short link test results 2013-08-06 13:33:21 +01:00
Tom Hughes
b12598112a Add method specifiers to oauth routing tests 2013-08-05 20:12:49 +01:00
Tom Hughes
b8f126bcf6 Update short link integration tests for hash links 2013-08-04 12:50:05 +01:00
Tom Hughes
f9d714dfd3 Merge remote-tracking branch 'osmlab/hash' 2013-08-04 12:38:59 +01:00
Tom Hughes
755585e230 Add functional tests for nodes/ways/relations API methods 2013-08-04 11:12:09 +01:00
John Firebaugh
849e874dce Refactor user creation actions
Create a separate #create action that handles POSTs to
/user/new. This simplifies the other actions and ensures
that the URL is /user/new when validation errors occur,
rather than /user/terms.

Fixes #398
2013-08-01 17:32:40 +01:00
John Firebaugh
6618cb9019 Include layers in hash 2013-07-30 15:41:41 -07:00
John Firebaugh
c8d4e4eee3 Redirect lat/lon/zoom query params to hash 2013-07-30 15:41:41 -07:00
Tom Hughes
3880ac5de8 Replace :nothing => true with :text => ""
Using `:nothing => true` confusingly actually causes a single space
to be sent as the content by rails.
2013-07-19 11:14:55 +01:00
Tom Hughes
4a2ecfe8b3 Use the standard ruby instance_methods call
Rails 3 has an instance_methods_name extension that returns strings
instead of symbols, but that goes away in Rails 4 so just use the
standard routine instead.
2013-07-09 18:26:54 +01:00
Tom Hughes
1234561a78 The ActiveRecord exists? method may not return an explicit true/false
https://github.com/rails/rails/issues/10062
2013-07-09 18:26:54 +01:00
Tom Hughes
e8f1953d7d Rename test to avoid class name conflict with unit test 2013-07-09 18:26:54 +01:00
Tom Hughes
33f30af7b3 Update tests for changes to user settings form 2013-07-08 09:43:07 +01:00
Tom Hughes
8313bf0612 Update tests for changes to signup form 2013-07-08 09:34:59 +01:00
Tom Hughes
92a8894118 Fix up user creation tests to handle cookie check 2013-07-04 14:52:41 +01:00