aboutsummaryrefslogtreecommitdiffstats
path: root/spec/controllers
Commit message (Collapse)AuthorAgeLines
* Handle the case where the blog feed already has querystring parameters.Louise Crow2012-10-11-0/+16
|
* add magic encoding comment to specsJames McKinney2012-10-10-1/+3
|
* Extract configuration with defaults into one moduleMatthew Landauer2012-09-25-1/+1
|
* Add an option to disable comments on a requestRobin Houston2012-09-19-0/+27
| | | | Closes #30.
* Paginate the timeline to allow it to render in a reasonable amount of time. ↵Louise Crow2012-09-13-12/+33
| | | | In order to avoid sorting large numbers of objects in order to get the right order of combined events across the two model types, get the overall order first from the database and then populate the slice we're interested in.
* Merge branch 'develop' of ssh://git.mysociety.org/data/git/public/alaveteli ↵Louise Crow2012-09-11-20/+72
|\ | | | | | | into develop
| * Add a since_date parameter to the API feedRobin Houston2012-09-10-0/+15
| |
| * Update other testsRobin Houston2012-09-07-20/+25
| | | | | | | | Update the other API tests to take account of the changed error behaviour.
| * API errors should be JSONRobin Houston2012-09-04-0/+32
| | | | | | | | | | | | | | | | | | | | The API was returning Rails (HTML) errors for certain error conditions, which is inconvenient because it makes it difficult for the client to extract the error message. This patch changes add_correspondence to return JSON errors (still with suitable HTTP status codes) for two common exceptional conditions, and adds tests.
* | Bugfix in spec.Louise Crow2012-09-11-1/+1
| |
* | Record a status update by someone other than the request owner as a request ↵Louise Crow2012-09-11-2/+12
|/ | | | classification.
* Merge branch 'feature/repo-move' into developLouise Crow2012-08-30-8/+8
|\
| * Update references to point to the mySociety repo.Louise Crow2012-08-29-8/+8
| |
* | Fix basic admin interface in case where external request without username is ↵Louise Crow2012-08-29-0/+5
|/ | | | being displayed.
* Now that external request followups can't be made and status can't be ↵Louise Crow2012-08-23-12/+104
| | | | updated, don't show links or text that suggests they can.
* Don't allow status updates on external requests from the front end interface ↵Louise Crow2012-08-23-259/+331
| | | | | | (they can still be changed from the admin interface). Final part of fix for #562.
* Don't show 'requester only' actions for an external request.Louise Crow2012-08-23-0/+12
| | | | Part of the fix for #562.
* Don't error on a request to followup an external request.Louise Crow2012-08-23-0/+16
| | | | Partial solution to #562.
* Handle the case where someone wants to add an annotation to a successful ↵Louise Crow2012-08-23-0/+20
| | | | | | external request. Fixes #563.
* Merge branch 'release/0.6.3' into developLouise Crow2012-08-22-21/+94
|\ | | | | | | | | | | | | | | Conflicts: app/controllers/admin_public_body_controller.rb app/views/admin_public_body/import_csv.rhtml spec/controllers/admin_public_body_controller_spec.rb spec/models/info_request_spec.rb
| * Rework the temporary storing of a csv file of public body info between a dry ↵Louise Crow2012-08-20-18/+98
| | | | | | | | run and real load. Use a temp file, not the session for the data. Also fixes #503.
| * Add before and after methods to isolate any effect these tests have on locale.Louise Crow2012-08-13-2/+12
| |
* | Use user_name to supply the user name for an internal or external request in ↵Louise Crow2012-08-22-32/+42
| | | | | | | | | | | | the simple correspondence template used when a full request zip is downloaded. Fixes #561.
* | Fix admin links in the case where an external request is viewed by an admin ↵Louise Crow2012-08-22-0/+12
| | | | | | | | user.
* | Don't send comment alerts for external requests.Louise Crow2012-08-22-0/+10
| |
* | Re-enable testing of comment links in emails.Louise Crow2012-08-22-7/+2
| |
* | Fix comment typo.Louise Crow2012-08-22-2/+2
| |
* | Allow external requests to be hidden from the admin interface.Louise Crow2012-08-22-0/+50
| |
* | Don't pass a page param of less than one through to Xapian, treat it as a ↵Louise Crow2012-08-21-1/+8
| | | | | | | | param of 1. Fixes #557.
* | Merge branch 'develop' of github.com:sebbacon/alaveteli into developLouise Crow2012-08-20-1/+20
|\ \
| * | Fail with NotFound if request slug doesn't existRobin Houston2012-08-20-1/+20
| | | | | | | | | | | | Closes #554.
* | | Use find_by_url_title! to raise ActiveRecordNotFound in upload response when ↵Louise Crow2012-08-20-0/+4
|/ / | | | | | | | | | | no record is found using url_title. Closes #553.
* | Merge branch 'wdtk' into developLouise Crow2012-08-16-216/+306
|\ \ | | | | | | | | | | | | | | | | | | Conflicts: app/controllers/admin_request_controller.rb config/httpd.conf spec/models/info_request_spec.rb
| * | When displaying attachments, only cache them out to files if they are ↵Louise Crow2012-08-16-198/+219
| | | | | | | | | | | | visible to everyone, so can be served up from a file cache without authentication.
| * | Fix typo in comment.Louise Crow2012-08-16-18/+87
| |/
* | Add failing test showing a bug when clicking 'Import from CSV file' on the ↵Henare Degan2012-08-11-0/+7
| | | | | | | | admin public authorities page
* | Add before and after methods to isolate any effect these tests have on locale.Louise Crow2012-08-01-2/+12
|/
* JSON new events feedRobin Houston2012-07-04-1/+39
|
* Atom feed of request eventsRobin Houston2012-07-04-0/+16
| | | | | | | | | | We need not only new requests, but new outgoing correspondence of any sort. The idea is that this feed will contain any event that would have triggered an email to be sent to the public body, so can be used as an alternative, equivalent way to stay up-to-date with happenings on WDTK (or the Alaveteli installation of choice).
* Don't allow non-superusers to access admin interface (eek!) Fixes #515Seb Bacon2012-06-27-1/+9
|
* Merge branch 'develop' of github.com:sebbacon/alaveteli into developRobin Houston2012-06-23-26/+68
|\ | | | | | | | | | | | | | | Conflicts: Gemfile.lock script/handle-mail-replies script/handle-mail-replies.rb spec/controllers/request_controller_spec.rb
| * Only invalidate a user's cached requests when their *name* changes. ↵Seb Bacon2012-06-20-1/+7
| | | | | | | | Otherwise we issue PURGEs every time, for example, we send out email alerts.
| * 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/+18
| | | | | | | | | | | | 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/+5
| | | | | | | | it less brittle.
| * 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
| |