Commit message (Collapse) | Author | Age | Lines | |
---|---|---|---|---|
* | Simplify redirection test | Matthew Landauer | 2013-01-31 | -4/+2 |
| | ||||
* | There's really no need to test the internals of Rails | Matthew Landauer | 2013-01-31 | -9/+0 |
| | ||||
* | Use new function that copies existing xapian index in spec setup where a ↵ | Louise Crow | 2012-11-21 | -1/+1 |
| | | | | clean copy of the xapian index with fixtures loaded is required. | |||
* | Restore explanatory messages when asked to sign in for actions that don't ↵ | Louise Crow | 2012-11-20 | -14/+21 |
| | | | | require an existing user. Fixes #719. | |||
* | if the response code doesn't match, the failure message is unhelpful | James McKinney | 2012-11-01 | -2/+7 |
| | ||||
* | Extract configuration with defaults into one module | Matthew Landauer | 2012-09-25 | -3/+1 |
| | ||||
* | Update references to point to the mySociety repo. | Louise Crow | 2012-08-29 | -6/+6 |
| | ||||
* | File.dirname(__FILE__) is not necessarily absolute | Robin Houston | 2012-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. | |||
* | Ensure we redirect to the URL-based version of a search, when specified as a ↵ | Seb Bacon | 2012-05-04 | -0/+7 |
| | | | | query string, even when the variety of search is "all". Fixes #448 | |||
* | Fixes to integration/admin_spec | Robin Houston | 2012-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. | |||
* | Fix the "log in as" function | Robin Houston | 2012-03-20 | -0/+24 |
| | | | | | | | | | | | | | | | 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 links | Robin Houston | 2012-03-13 | -0/+44 |
| | | | | Fixes #446. See issue for details. | |||
* | Load all fixtures for all tests | Robin Houston | 2012-01-31 | -42/+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. | |||
* | More test data, and fix tests | Robin Houston | 2012-01-29 | -5/+18 |
| | | | | | | Add some more test data, and fix the tests to accommodate both this new test data and the fact that raw emails are now correctly loaded into the test environment. | |||
* | Load all raw emails for testing | Robin Houston | 2012-01-29 | -5/+3 |
| | | | | | | | | | | | Previously there was just one raw email, and the test code relied on that fact. Generalise it to handle multiple raw emails. This change causes a number of tests to fail, because it exposes failures that should have happened when the second raw email was added but were masked by the fact that the text of this second raw email was never loaded. These failures will be fixed in the next commit. | |||
* | Simplify search logic so it doesn't depend on sessions. Also fixes #338 | Seb Bacon | 2012-01-25 | -3/+3 |
| | ||||
* | More test isolation | Robin Houston | 2012-01-24 | -0/+1 |
| | | | | | Towards #361. (Possibly even the very last one!) Fixes: spec/models/xapian_spec.rb spec/integration/search_request_spec.rb | |||
* | Don't allow directory listings (better fix for and closes #340). | Seb Bacon | 2012-01-17 | -3/+6 |
| | ||||
* | Test for commit 9099f63a364242764da529c109166e69fd2ec606 | Seb Bacon | 2012-01-17 | -2/+2 |
| | ||||
* | Further refinement for issue #340 | Seb Bacon | 2012-01-13 | -0/+2 |
| | ||||
* | Return 404 for non-existent 'details' pages. Fixes #325 | Seb Bacon | 2012-01-12 | -0/+4 |
| | ||||
* | Return 403 when attachment "folders" are spidered. Fixes #340 | Seb Bacon | 2012-01-12 | -0/+4 |
| | ||||
* | Don't generate endlessly recursive URLs from request pages where the URL has ↵ | Seb Bacon | 2011-12-21 | -0/+32 |
| | | | | a query string. Fixes #311. | |||
* | allow specs to run independently | James McKinney | 2011-10-16 | -18/+26 |
| | ||||
* | Provide ability to download zip file containing complete request. Closes #11 | Seb Bacon | 2011-09-13 | -1/+2 |
| | ||||
* | Fix integration test breaking custom states spec | David Cabo | 2011-09-03 | -18/+2 |
| | ||||
* | Make the general search return requests only, by default | Seb Bacon | 2011-09-01 | -2/+7 |
| | ||||
* | Fixes to get tests pass following new design changes | Seb Bacon | 2011-09-01 | -2/+2 |
| | ||||
* | Distinguish between 404s and other errors. Fixes #161. | Seb Bacon | 2011-08-30 | -0/+61 |
| | ||||
* | Add tests & fixes for new search/filtering functionality | Seb Bacon | 2011-08-29 | -0/+48 |
| | ||||
* | New files I forgot to add in a7df6f479f452503e3a9 | Seb Bacon | 2011-08-15 | -0/+9 |