Commit graph

73 commits

Author SHA1 Message Date
Tom Hughes
25720e3ee3 Make sure the "terms seen" tests actually run 2013-09-29 15:43:16 +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
d8399d3e18 IntegrationTest is now in ActionDispatch not ActionController 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
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
Tom Hughes
e84ed734aa Update short link test results 2013-08-06 13:33:21 +01:00
Tom Hughes
b8f126bcf6 Update short link integration tests for hash links 2013-08-04 12:50:05 +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
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
e8f1953d7d Rename test to avoid class name conflict with unit test 2013-07-09 18:26:54 +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
ed699548e6 Update tests for layout changes 2013-01-14 22:30:54 +00: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
John Firebaugh
7751973871 Allow cross-origin requests to API 2012-10-22 19:11:52 +01:00
Tom Hughes
ec92881dd0 Fix test failure caused by moving OAuth settings link 2012-08-10 08:27:28 +01:00
Tom Hughes
9813d9f1e4 Get all the tests passing under ruby 1.9 2012-05-27 13:51:25 +01:00
Tom Hughes
d9dedf403d Test that revoking OAuth tokens works 2012-04-24 21:28:20 +01:00
Tom Hughes
5f33656c8d Get rid of custom CSRF protection for user role changes
By restricting role changes to POST requests, which they should be
anyway, we get all the rails CSRF protection for free.
2012-03-20 17:21:13 +00:00
Tom Hughes
ef820ade46 Fix some incorrect tests that relied on the default routes 2012-03-09 20:16:18 +00:00
Tom Hughes
1340fca8f1 Turn on mass assignment protection
Require any attribute that is going to be mass assigned to be
whitelisted, and whitelist those attributes which need it
2012-03-06 08:54:45 +00:00
Tom Hughes
2b04242462 Add extra login tests for case insensitive usernames 2011-12-13 21:49:25 +00:00
Tom Hughes
c00dd8c712 Add some OAuth tests 2011-11-19 17:38:06 +00: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
0ffb08b070 Add some tests for password logins 2011-09-24 15:19:34 +01:00
Tom Hughes
d9ba5ff31f Update tests for changes to login form 2011-09-24 15:13:40 +01: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
Tom Hughes
832b96b75a Merge branch 'master' into openid
Conflicts:
	app/controllers/user_controller.rb
	app/views/user/terms.html.erb
	test/fixtures/users.yml
2011-05-21 12:14:56 +01:00
Matt Amos
3700b534e4 Change the test for whether the CTs have been seen to use the
user preferences API call rather than user details, as that one
is no longer blocked.
2011-05-01 02:34:38 +01:00
Tom Hughes
02e186ee5b Allow user details to be fetched without agreeing terms 2011-04-20 21:17:59 +01:00
Matt Amos
c21aa5933a Added flash notice for CTs decline
Also ensured that CTs are either accepted or declined and cannot
be inadvertently bypassed.
2011-04-18 00:29:15 +01:00
Tom Hughes
452879ee03 Don't run the user terms tests unless REQUIRE_TERMS_SEEN is set 2011-04-03 13:46:16 +01:00
Matt Amos
8b12abd5bb Phase 2 CTs implementation and tests, with config parameter 2011-04-03 13:46:16 +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