| Commit message (Collapse) | Author | Age | Lines |
| |
|
|
|
|
|
| |
Move specs that involve receiving email and then viewing the interface
to be integration specs, which is what they really are.
|
| |
|
| |
|
|
|
|
|
| |
Make specs that depend on multiple controllers and models interacting
integration specs.
|
|
|
|
| |
Add a failing test for what should happen on request hiding.
|
| |
|
| |
|
|
|
|
|
|
| |
1. Remove useless call to spec_helper’s basic_auth_login method
2. Use Base64.encode64, rather than b64encode which also prints
the encoded string to standard output.
|
|
Previously the "log in as" function after 3b6e5a692b852a88f55b21a7210f60a6f7cfc24b
would attempt to log the admin user out before issuing the redirect. Unfortunately
this approach does not work on WhatDoTheyKnow, where the admin pages are served via
a different domain (secure.mysociety.org) and so do not share session information with
the rest of the site.
This commit changes it to mark the PostRedirect with circumstance == "login_as",
which signals the user controller to log out the previous user even if they are
an admin. In other words, the user is logged out on the main site rather than the
admin site, skirting this problem.
Closes #450.
|