Commit graph

50 commits

Author SHA1 Message Date
Tom Hughes
c70a1fe933 Add support for GitHub authentication 2016-07-14 09:40:45 +01:00
Tom Hughes
8fe1899596 Fix rubocop warnings 2016-01-19 09:51:24 +00:00
Tom Hughes
2ef6a960d1 Update bundle 2016-01-19 09:51:23 +00:00
Tom Hughes
4028f4cdb9 Rework locale selection
Implement our own matching algorithm rather than trying to
patch the http_accept_language one and make sure everything is
using it in a consistent way.

Fixes #1125
2016-01-06 18:43:25 +00:00
Tom Hughes
e07890a2ad Remove bogus mock data from facebook and windowslive tests 2015-06-08 16:27:04 +01:00
Tom Hughes
2b2264ddab Add support for Windows Live authentication 2015-05-19 14:04:09 +01:00
Tom Hughes
c9893e186b Add support for Facebook authentication 2015-05-19 14:04:08 +01:00
Tom Hughes
ddaf43bc0e Add tests for Google OAuth authentication 2015-04-14 10:08:07 +01:00
Tom Hughes
9f263dd9c3 Reset the locale after tests that may change it 2015-03-09 00:15:05 +00:00
Tom Hughes
e434cb154c Convert OpenID authentication to generic third party authentication 2015-02-25 01:07:23 +00:00
Tom Hughes
eaf4b32a7f Rework OpenID tests for new flows using OmniAuth mocking 2015-02-25 01:07:23 +00:00
Tom Hughes
dc2a2c8ebd Standardise on double quoted strings 2015-02-20 19:47:26 +00:00
Tom Hughes
baf10cd392 Fix rubocop lint issues 2015-02-20 08:56:16 +00:00
Tom Hughes
ef7f3d800c Fix most auto-correctable rubocop issues 2015-02-20 08:56:16 +00:00
Tom Hughes
84c802d1a9 Use correct URL 2015-01-10 17:40:55 +00:00
Tom Hughes
c8a23f07db Fix typo 2014-05-24 17:34:19 +01:00
Tom Hughes
98184dfb9c Reorganise tests to match modern rails test layout 2014-02-26 00:13:19 +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
d8399d3e18 IntegrationTest is now in ActionDispatch not ActionController 2013-09-21 11:35:46 +01: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
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
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
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
9813d9f1e4 Get all the tests passing under ruby 1.9 2012-05-27 13:51:25 +01:00
Tom Hughes
3ae17e46ad Replace deprecated response.redirected_to with response.redirect_url 2011-11-14 09:42:50 +00:00
Tom Hughes
7d09beb570 Fixed tests to handle multi-part confirmation email 2011-11-14 09:42:49 +00:00
Tom Hughes
d63d49b967 Removed extension from assert_template calls 2011-11-14 09:42:47 +00:00
Tom Hughes
e007ad3a00 Fix tests to copy with new style mail objects 2011-11-14 09:42:47 +00:00
Tom Hughes
edb68e839f Rail 3 has renamed fieldWithErrors to field_with_errors 2011-11-14 09:42:47 +00:00
Tom Hughes
b84ffebb7b Set Accept-Language in a rails 3 compatible way 2011-11-14 09:42:47 +00:00
Tom Hughes
2a635ab28f Start ROTS for user login tests as well as creation tests 2011-05-21 13:35:15 +01:00
Tom Hughes
3f81257fc5 If we start a ROTS instance then kill it when we're done 2011-05-21 12:35:48 +01:00
Kai Krueger
426778dd2a Start the rots server if it isn't already running 2010-12-06 00:38:42 +00:00
Tom Hughes
c1b65d11fd Fixup openid test to reflect changes merged from master 2010-10-05 00:45:03 +01:00
Tom Hughes
c016bf6c15 Merge branch 'master' into openid
Conflicts:
	app/controllers/user_controller.rb
2010-10-05 00:23:04 +01:00
Tom Hughes
bddf524c88 Allow users to send themselves a new confirmation email
Add a method which generates a new confirmation email, and provide
links to it from appropriate places.
2010-10-04 21:52:58 +01:00
Kai Krueger
a0b76fc2c5 Test openid based user creation right through to the final save 2010-10-01 21:29:23 +01:00
Kai Krueger
ce1e788f82 Add a test for openid failure during user creation 2010-10-01 21:06:57 +01:00
Tom Hughes
bffc0377dd Fix user creation tests to handle terms screen 2010-05-11 22:25:06 +01:00
Tom Hughes
c6609cce24 Fixup tests to work after changes to user controller 2010-05-11 14:12:57 +01:00
Kai Krueger
92af0eccd5 Add test for OpenID login and signup
The tests need the ROTS (Ruby OpenID Test Server) running.
ROTS can be found at http://github.com/roman/rots
If ROTS is not running, there will be 4 failed test cases, but otherwise
things should work
2010-05-02 11:04:51 +01:00
Shaun McDonald
5cbaa2fca7 fix some trace tests, due to a change of the way that your own ones are rendered. 2010-01-10 15:21:53 +00:00
Tom Hughes
d4b8020757 Fix tests to reflect changes to signup form. 2009-10-21 23:35:59 +00:00
Matt Amos
b34b898451 Added referer URL in user_token so that redirections (e.g: from oauth token requests) are followed after the user has confirmed the sign-up. Added test for the same. 2009-08-25 15:00:32 +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
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