aboutsummaryrefslogtreecommitdiffstats
path: root/spec/integration/search_request_spec.rb
Commit message (Collapse)AuthorAgeLines
* Use GET for search forms, not POST.Louise Crow2015-04-10-8/+20
| | | | | | | | | | Now that we use global CSRF authenticity checks, searches were logging logged-in users out as the form is an HTML form, not a Rails-generated form with a CSRF token. So form submission raised an InvalidAuthenticityToken error and reset their session. We could generate the form in Rails, but we also want to minimise the number of non-logged in people who have a session cookie, so that varnish can cache pages extensively. So we don't want to put the CSRF token for the search form in everyone's session.
* Simplify redirection testMatthew Landauer2013-01-31-4/+2
|
* Use new function that copies existing xapian index in spec setup where a ↵Louise Crow2012-11-21-1/+1
| | | | clean copy of the xapian index with fixtures loaded is required.
* 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
* Load all fixtures for all testsRobin Houston2012-01-31-14/+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 testsRobin Houston2012-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 testingRobin Houston2012-01-29-2/+1
| | | | | | | | | | | 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 #338Seb Bacon2012-01-25-3/+3
|
* More test isolationRobin Houston2012-01-24-0/+1
| | | | | Towards #361. (Possibly even the very last one!) Fixes: spec/models/xapian_spec.rb spec/integration/search_request_spec.rb
* Test for commit 9099f63a364242764da529c109166e69fd2ec606Seb Bacon2012-01-17-2/+2
|
* allow specs to run independentlyJames McKinney2011-10-16-9/+13
|
* Provide ability to download zip file containing complete request. Closes #11Seb Bacon2011-09-13-1/+2
|
* Make the general search return requests only, by defaultSeb Bacon2011-09-01-2/+7
|
* Fixes to get tests pass following new design changesSeb Bacon2011-09-01-2/+2
|
* Add tests & fixes for new search/filtering functionalitySeb Bacon2011-08-29-0/+48
|
* New files I forgot to add in a7df6f479f452503e3a9Seb Bacon2011-08-15-0/+9