aboutsummaryrefslogtreecommitdiffstats
path: root/spec
Commit message (Collapse)AuthorAgeLines
* Fix test to match current wordingSeb Bacon2012-06-19-1/+1
|
* Correctly name the person who has requested something for admin attentionSeb Bacon2012-06-19-0/+1
|
* Revert "Set a "Content-Disposition: attachment" header when downloading ↵Seb Bacon2012-06-15-9/+1
| | | | | | | | files. Closes #428" This reverts commit 506af7a640f63b17000ccfc5e1344bbc3039c913. See issue #428 for a discussion
* Ensure we generate URLs containing the current locale, even if the locale ↵Seb Bacon2012-06-14-1/+4277
| | | | | | contains an underscore. Includes a bonus test to ensure that locales with unknown territories fall back to known languages.
* Use PO files from `spec/fixtures/locale` rather than the application - makes ↵Seb Bacon2012-06-14-0/+8821
| | | | it less brittle.
* Fix bug that was preventing Rails from loading when *not* in test mode ↵Seb Bacon2012-06-14-0/+6
| | | | (exposed by the bug fixed in 7c846594 that was introduced in 775e122c)
* Fix test breakage (really we should use a test app.po rather than the real ↵Seb Bacon2012-06-14-1/+1
| | | | one for testing!)
* Use POST rather than GET for tests (this matches better what the UI does)Seb Bacon2012-06-12-4/+4
|
* Ensure attention-requesting tests pass by faking a logged in userSeb Bacon2012-06-12-0/+5
|
* Make emails requesting admin attention appear to come from the user who ↵Seb Bacon2012-06-12-0/+10
| | | | requested the attention, not the user who made the original request.
* File.dirname(__FILE__) is not necessarily absoluteRobin Houston2012-06-03-1/+1
| | | | | | | It’s weird that there’s so much code here that implicitly assumes File.dirname(__FILE__) is an absolute path, because really in general it very much is not! This assumption was invalidated by the recent bundler-awareness changes.
* Make the logic that tells you about other countries' Alavetelis prefer the ↵Seb Bacon2012-05-30-3/+5
| | | | browser language; and make the tests pass.
* Test for user turning email alerts off. Also includes a fix not to rely on ↵Seb Bacon2012-05-30-0/+14
| | | | HTTP_REFERER for subsequent redirect.
* Make it possible to view other people's activities on their own walls.Seb Bacon2012-05-30-0/+6
|
* Test to ensure users who have opted out of alert emails don't get anySeb Bacon2012-05-30-0/+7
|
* Test for the user's wall.Seb Bacon2012-05-30-0/+20
|
* Fix tests that broke as result of new flag to control if email alerts should ↵Seb Bacon2012-05-30-0/+4
| | | | be sent
* Allow messages to be redelivered to more than one request. Closes #442Seb Bacon2012-05-29-0/+21
|
* Support easy hiding of requests for admins. Currently not exposed in core ↵Seb Bacon2012-05-25-0/+22
| | | | admin interface (requires adminbootstraptheme).
* Test for reporting functionalitySeb Bacon2012-05-24-0/+41
|
* 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.