Commit graph

45 commits

Author SHA1 Message Date
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
John Firebaugh
e91956d0f7 Fix test failures 2013-11-19 10:30:18 -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
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
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
John Firebaugh
b825f4826a Fix referer params for welcome page 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
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
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
Tom Hughes
b7b68aee36 Simplify handling of verified emails in OpenID signup
Also make sure that all paths that lead to OpenID based signup
will notice a verified email properly.
2012-10-30 21:43:38 +00:00
Tom Hughes
f47edb1446 Don't report the PD flag in the user API call 2012-09-24 18:44:12 +01:00
Tom Hughes
3ce4de1295 Add a /api/0.6/user/NNNN call to the API 2012-09-24 18:44:11 +01:00
Tom Hughes
05515d644a Test the links in the menu of the user view page 2012-08-15 22:36:40 +01:00
Tom Hughes
3d5a613c5e Add tests for make_friend and remove_friend 2012-08-15 22:36:39 +01:00
Tom Hughes
573991e5a9 Fixup make_friend and remove_friend properly
Requests using POST are now actioned immediately, while requests
using GET present a confirmation page.
2012-08-15 20:13:14 +01:00
Tom Hughes
740ba0dd38 Require POST for make_friend and remove_friend
Note that this breaks the make_friend link in friend notfication
emails, but it will do as a temporary measure.
2012-08-14 22:49:52 +01:00
Tom Hughes
9813d9f1e4 Get all the tests passing under ruby 1.9 2012-05-27 13:51:25 +01:00
Tom Hughes
561f2f694a Add preview functionality to rich text controls 2012-03-17 16:36:57 +00:00
Tom Hughes
90e46a58de Add routing tests for all supported routes 2012-03-09 19:49:44 +00:00
Tom Hughes
b705af948b Add some password recovery tests 2011-12-13 19:13:34 +00:00
Tom Hughes
5c557cfe7c Add some tests for updating users 2011-12-13 10:28:17 +00:00
Tom Hughes
edb68e839f Rail 3 has renamed fieldWithErrors to field_with_errors 2011-11-14 09:42:47 +00:00
Tom Hughes
c24967d168 Remove :root qualifiers as they don't seem to work in rails 2.3.14 2011-08-22 22:42:38 +01:00
Tom Hughes
4b20afd51e Preserve the referer at the end of account creation 2011-04-03 13:46:18 +01:00
Tom Hughes
e005926131 Update test to reflect changes in signup page 2010-05-11 19:17:14 +01:00
Tom Hughes
d3bcbf0367 Fix test for viewing an unknown user to actually specify a name - what
it was doing before was testing whether the null user existed.
2010-02-26 15:07:28 +00:00
Tom Hughes
d4b8020757 Fix tests to reflect changes to signup form. 2009-10-21 23:35:59 +00:00
Shaun McDonald
887eba8c8d More tests to check that user creation works, and the url in the e-mail is the same. Seems that we can only test that a particular page is loading fine in all locales in the integration tests, and not the functional tests. 2009-06-07 21:07:07 +00:00
Tom Hughes
f0f111aced Make a few more things translatable. 2009-06-03 08:06:03 +00:00
Tom Hughes
77a34278ca Backout broken attempt at making case insensitive authentication work
on Postgres. As implemented this forces a table scan to authenticate
users which is ridiculous to save people pressing the shift key.
2009-04-23 23:46:45 +00:00
Shaun McDonald
f1a0331081 Hack a way to make the email and display name case insensitive for logging in, based on a suggestion by firefishy to use ILIKE. Changes requested from users on mailing list. Includes some tests to check the case insensitivity of the username, and and e-mail address on login. 2009-04-23 19:20:08 +00:00
Shaun McDonald
0f25285ab6 More tests, found a bug in the data browser, no fix yet. Fix db readme. Don't show the signup page to logged in users, by redirecting them to the home page. Remove unnessesary begin blocks in the browse controller. 2009-04-12 23:20:31 +00:00
Shaun McDonald
79284559af Adding stub functional test files for all the controllers that should have tests written for them. 2008-10-28 12:49:51 +00:00