aboutsummaryrefslogtreecommitdiffstats
path: root/spec/controllers
Commit message (Collapse)AuthorAgeLines
* 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
|
* 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
| |
| * 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.
* | API controller tests all passRobin Houston2012-06-18-3/+15
| |
* | Update tests to reflect code changesRobin Houston2012-06-07-0/+23
| | | | | | | | | | Since users must now be logged-in to report requests, the tests need to reflect this.
* | Update test for e3cfe550fe835c68b25d693abd40aedd954913b3Robin Houston2012-06-07-1/+1
| | | | | | | | | | The wording that was changed by e3cfe550fe835c68b25d693abd40aedd954913b3 turns out to be relied on by one of the tests.
* | WIP attachment uploading via APIRobin Houston2012-06-06-4/+20
| |
* | Test for attaching a file via the APIRobin Houston2012-06-06-0/+36
| | | | | | | | Not yet implemented, so the test fails.
* | Correct comment\Robin Houston2012-06-06-1/+1
| |
* | Use a fixture for the external requestRobin Houston2012-06-06-4/+8
| |
* | API: Some testing of show_requestRobin Houston2012-06-06-0/+13
| |
* | API: test also for refusal conditionsRobin Houston2012-06-06-0/+39
| | | | | | | | | | | | The API must not allow people to update requests that they shouldn’t, i.e. only requests that were created by the same public body, using the API, can be added to using the API.
* | API: add followup to requestRobin Houston2012-06-06-13/+61
| | | | | | | | You can add a followup to a request using the API.
* | API: we can add a response to a requestRobin Houston2012-06-06-0/+60
| |
* | API create_request method is workingRobin Houston2012-06-06-1/+2
| | | | | | | | | | | | "when using the API", it "should create a new request from a POST", AND IT DOES!
* | Fix test and fixtures so they only fail due to missing business logic ↵Seb Bacon2012-06-06-4/+5
| | | | | | | | (corrected typo, added missing fixture data, etc)
* | Test for creating a new request via the APIRobin Houston2012-06-06-0/+33
|/ | | | This is not yet implemented. Test first!
* 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/+9
| | | | 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 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/+2
| | | | 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
|
* Always show tracking links even for things that currently have no resultsSeb Bacon2012-05-11-0/+5
|
* 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.
* Merge branch 'develop' of github.com:sebbacon/alaveteli into developRobin Houston2012-05-03-1/+76
|\
| * 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`)
| * More changes and refactoring to make purges work.Seb Bacon2012-04-20-14/+9
| |
| * Merge branch 'develop' into purge-requestsSeb Bacon2012-04-19-25/+12
| |\ | | | | | | | | | | | | Conflicts: spec/controllers/request_controller_spec.rb
| * | first stab at sending PURGE requests to upstream varnish for request pages. ↵Seb Bacon2012-03-13-1/+76
| | | | | | | | | | | | Next step: making it asynchronous, e.g. with a queue of things to purge via a cron job.