aboutsummaryrefslogtreecommitdiffstats
path: root/spec
Commit message (Collapse)AuthorAgeLines
* Fix test breakage introduced in 8d78cb8844549dc901cd901371be6ec604fb7f68Seb Bacon2012-05-15-17/+11
|
* Improve administrative user account support:Seb Bacon2012-05-14-14/+27
| | | | | | * Allow users with `super` admin level to use the administrative interface. * Allow bootstrapping these users with an Emergency User over HTTP Basic Auth * Introduce new `SKIP_ADMIN_AUTH` setting to allow all admin auth to be bypassed (used by mySociety)
* Redirect people to more user-friendly search results page (where possible) ↵Seb Bacon2012-05-11-2/+10
| | | | after they've "followed" search results. Fixes #487
* Fix typo (introduced in commit cc023c67) that broke a testSeb Bacon2012-05-11-1/+1
|
* Correctly create tracks for searches that are filtered by variety:authority ↵Seb Bacon2012-05-11-0/+5
| | | | via the search UI
* Always show tracking links even for things that currently have no resultsSeb Bacon2012-05-11-0/+5
|
* Ensure we redirect to the URL-based version of a search, when specified as a ↵Seb Bacon2012-05-04-0/+7
| | | | query string, even when the variety of search is "all". Fixes #448
* Don't cache results from pages with different locales using the same key. ↵Seb Bacon2012-05-04-1/+9
| | | | Fixes #454
* Don't ever create more than one entry for each URL that we want Varnish to ↵Seb Bacon2012-05-04-0/+10
| | | | purge.
* Empty the purge queue even for failed requests (otherwise we will be ↵Seb Bacon2012-05-04-1/+1
| | | | endlessly polling the Varnish server until its fixed). Administrators should check the logs for failed purges.
* Merge branch 'develop' of github.com:sebbacon/alaveteli into developRobin Houston2012-05-03-2/+112
|\
| * Merge branch 'develop' of github.com:sebbacon/alaveteli into purge-requestsSeb Bacon2012-05-02-0/+693
| |\
| * | Modify InfoRequest stubs so they work with tests that iterate over the ↵Seb Bacon2012-05-02-0/+4
| | | | | | | | | | | | collection (e.g. `@user.info_requests.each`)
| * | Make the order of words in a track_thing description deterministic, so the ↵Seb Bacon2012-05-02-1/+1
| | | | | | | | | | | | test always passes
| * | More changes and refactoring to make purges work.Seb Bacon2012-04-20-15/+42
| | |
| * | Merge branch 'develop' into purge-requestsSeb Bacon2012-04-19-27/+81
| |\ \ | | | | | | | | | | | | | | | | Conflicts: spec/controllers/request_controller_spec.rb
| * | | first stab at sending PURGE requests to upstream varnish for request pages. ↵Seb Bacon2012-03-13-1/+79
| | | | | | | | | | | | | | | | Next step: making it asynchronous, e.g. with a queue of things to purge via a cron job.
| * | | Don't add http when https is presentHenare Degan2012-03-13-0/+6
| | | |
| * | | Don't add extra www characters to web addresses that have been explicitly ↵Henare Degan2012-03-13-1/+1
| | | | | | | | | | | | | | | | defined
| * | | Make public authority home page links work. Fixes #271Henare Degan2012-03-13-0/+6
| | | |
| * | | Add some tests for the public body home page calculationHenare Degan2012-03-13-0/+22
| | | |
| * | | Set a "Content-Disposition: attachment" header when downloading files. ↵Seb Bacon2012-03-13-1/+9
| | | | | | | | | | | | | | | | Closes #428
| * | | Make /similar/request/NONESUCH a 404 not 500 errorRobin Houston2012-03-13-0/+24
| | | | | | | | | | | | | | | | Fixes #421.
* | | | Filter public body tracks by event typeRobin Houston2012-05-03-0/+29
| |_|/ |/| | | | | | | | | | | Add the facility to filter the public body feed by event type using a query string parameter, e.g. event_type=sent.
* | | Handle yet another style of bounceRobin Houston2012-05-01-0/+174
| | |
* | | Recognise another variety of bounce messageRobin Houston2012-04-30-0/+519
| |/ |/|
* | Merge pull request #464 from jpmckinney/small-fixesRobin Houston2012-04-03-3/+3
|\ \ | | | | | | Small fixes
| * | use Rails.root, not RAILS_ROOTJames McKinney2012-04-02-3/+3
| | |
* | | Remove cache/zips/ before running tests that write to thereMark Longair2012-04-02-0/+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.
* | Merge branch 'wdtk' into developRobin Houston2012-03-20-8/+26
|\ \
| * | Fix the "log in as" functionRobin Houston2012-03-20-8/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| * | Admin users clicking confirmation linksRobin Houston2012-03-13-1/+45
| |/ | | | | | | Fixes #446. See issue for details.
* | Fix broken testRobin Houston2012-03-13-5/+5
| |
* | Correct bad nestingRobin Houston2012-03-13-3/+2
| |
* | Admin users clicking confirmation linksRobin Houston2012-03-13-1/+45
| | | | | | | | Fixes #446. See issue for details.
* | Merge branch 'merged-bundler' into developSeb Bacon2012-03-12-8/+0
|\ \
| * | Merge jpmckinney/bundlerSeb Bacon2012-02-15-8/+0
| | |
* | | Don't add http when https is presentHenare Degan2012-02-17-0/+6
| | |
* | | Don't add extra www characters to web addresses that have been explicitly ↵Henare Degan2012-02-16-1/+1
| | | | | | | | | | | | defined
* | | Make public authority home page links work. Fixes #271Henare Degan2012-02-16-0/+6
| | |
* | | Add some tests for the public body home page calculationHenare Degan2012-02-16-0/+22
|/ /
* | Set a "Content-Disposition: attachment" header when downloading files. ↵Seb Bacon2012-02-15-1/+9
| | | | | | | | Closes #428
* | Make /similar/request/NONESUCH a 404 not 500 errorRobin Houston2012-02-10-0/+24
|/ | | | Fixes #421.
* Don’t index unconfirmed usersRobin Houston2012-02-06-0/+16
| | | | Closes #415.
* Let admin users use auto-login URLsRobin Houston2012-02-06-4/+56
| | | | | | Don't change logged-in user from an admin when visiting a auto-login URL. Closes #306.
* Return 404 for /feed/user/no_such_userRobin Houston2012-02-03-0/+5
| | | | Fixes #407.
* Test should not depend on nondeterministic orderRobin Houston2012-02-03-9/+12
| | | | | | | | | | | | | | | | | | Issue #409 seems to be another problem of the same type as #408, though with the important difference that the bug in this case is in the test suite rather than the code under test. RequestMailer sends alert emails warning of overdue requests. However it does not specify the order that these messages are sent in, but runs over the overdue requests in whatever order they are returned by a database query (that does not have an order by clause). Therefore it is not safe for the test code to assume that the alert mails will have been sent in a particular order: just as with #408 it seems that they were *usually* sent in the order assumed by the test code, but occasionally not -- which would result in sporadic test failures. Closes #409.
* Eliminate trailing spaces in test namesRobin Houston2012-02-03-5/+5
| | | | Really, what was that about?
* Better test assertionsRobin Houston2012-02-03-17/+17
| | | | | Change the test assertions so they give more informative errors when they fail -- as they sometimes do: see issue #408.