aboutsummaryrefslogtreecommitdiffstats
path: root/spec/integration/admin_spec.rb
Commit message (Collapse)AuthorAgeLines
* Extract configuration with defaults into one moduleMatthew Landauer2012-09-25-3/+1
|
* Fixes to integration/admin_specRobin Houston2012-03-20-2/+1
| | | | | | 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.
* Fix the "log in as" functionRobin Houston2012-03-20-0/+24
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.