aboutsummaryrefslogtreecommitdiffstats
path: root/spec/controllers
Commit message (Collapse)AuthorAgeLines
...
* | 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.
| * | 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.
* | Merge pull request #464 from jpmckinney/small-fixesRobin Houston2012-04-03-1/+1
|\ \ | | | | | | Small fixes
| * | use Rails.root, not RAILS_ROOTJames McKinney2012-04-02-1/+1
| | |
* | | Remove cache/zips/ before running tests that write to thereMark Longair2012-04-02-0/+1
|/ /
* | Merge branch 'wdtk' into developRobin Houston2012-03-20-8/+2
|\ \
| * | Fix the "log in as" functionRobin Houston2012-03-20-8/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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/+1
| |/ | | | | | | 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/+1
| | | | | | | | Fixes #446. See issue for details.
* | Merge jpmckinney/bundlerSeb Bacon2012-02-15-8/+0
| |
* | 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-1/+53
| | | | | | 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-4/+4
| | | | Really, what was that about?
* Merge branch 'wdtk' into release/0.5Robin Houston2012-02-01-66/+41
|\ | | | | | | | | Conflicts: locale/app.pot
| * issue #351 reduxRobin Houston2012-02-01-4/+41
| | | | | | | | Corrected diagnosis, test & fix for issue #351. Fixes #351.
| * Load all fixtures for all testsRobin Houston2012-01-31-62/+0
| | | | | | | | | | | | | | | | | | The ad hoc specification of fixtures has been an ongoing source of bugs in the tests. The straw that broke the camel’s back is that 7c6eb09 requires the fixtures to be loaded in order (i.e. children before their parents), and it would have been a painful process to reorder all the dozens of different fixture lists, but the test system ought to be more reliable this way.
* | Merge branch 'issue_393' of https://github.com/henare/alaveteli into release/0.5Seb Bacon2012-01-31-0/+8
|\ \ | |/ |/|
| * Fixes #393 - Route the mass_assign_tags action so it does what it says on ↵Henare Degan2012-01-31-0/+8
| | | | | | | | the tin
* | Merge branch 'wdtk' into release/0.5Robin Houston2012-01-31-2/+2
|\ \ | | | | | | | | | | | | | | | Conflicts: config/general.yml-example doc/CHANGES.md
| * | Correct copy-pastoRobin Houston2012-01-31-2/+2
| |/ | | | | | | | | I am not sure why the tests anyway passed with this mistake, but clearly those trailing .should's ought not to have been there.
* | Fix test failure introduced in commit 24bbaa5afac5ce27c351e3b460be1b0182446ba1Seb Bacon2012-01-30-1/+7
| |
* | Make better wording at the top of the page listing subsets of public bodies. ↵Seb Bacon2012-01-30-1/+4
|/ | | | At the same time, cause the tests not to rely on WDTK data. Fixes #396