Commit message (Collapse) | Author | Age | Lines | |
---|---|---|---|---|
* | Use new function that copies existing xapian index in spec setup where a ↵ | Louise Crow | 2012-11-21 | -11/+11 |
| | | | | clean copy of the xapian index with fixtures loaded is required. | |||
* | Fix test for updated test data | Robin Houston | 2012-06-07 | -1/+1 |
| | | | | | Replace another constant with a computed value, so we can accommodate new test data without spuriously failing. | |||
* | Make test more flexible | Robin Houston | 2012-06-07 | -3/+3 |
| | | | | | | | Remove another dependency of a test on the aggregate set of test data, part of a long-term programme to make it easier to add test data (and required here because recently-added test data was causing these tests to fail!) | |||
* | Load all fixtures for all tests | Robin Houston | 2012-01-31 | -9/+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. | |||
* | Load all raw emails for testing | Robin Houston | 2012-01-29 | -9/+9 |
| | | | | | | | | | | | 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. | |||
* | Refactor test code so new test data can be added | Robin Houston | 2012-01-26 | -17/+11 |
| | | | | | | | | Previously many of the tests made assumptions about the global structure of the test data set: the total number of requests, for example, or the names of all public bodies. This makes it difficult to add to the test data. This change is intended to make the test data easier to extend by eliminating such global assumptions. | |||
* | Make sure the raw emails are loaded | Robin Houston | 2012-01-24 | -38/+14 |
| | | | | | This fixes (at least) one of the failures in #361, viz spec/controllers/admin_request_controller_spec.rb spec/models/xapian_spec.rb | |||
* | Fix bug introduced in cec2c545e0a10e0641c4ee67839c88d872b394b8, related to ↵ | Seb Bacon | 2012-01-13 | -8/+11 |
| | | | | issue #343. | |||
* | Further improvements to attachment caching | Seb Bacon | 2011-12-13 | -0/+1 |
| | ||||
* | add ability to rebuild specific terms rather than all indices -- useful for ↵ | Seb Bacon | 2011-12-05 | -1/+62 |
| | | | | migrations where new terms have been added (see rake:xapian:rebuild_index help) | |||
* | Merge branch 'develop' into xapian-dcabo | Seb Bacon | 2011-11-24 | -8/+8 |
|\ | | | | | | | | | Conflicts: spec/models/xapian_spec.rb | |||
| * | allow specs to run independently | James McKinney | 2011-10-16 | -8/+8 |
| | | ||||
* | | Merge branch 'develop' into xapian-dcabo | seb | 2011-11-24 | -30/+23 |
|\| | | | | | | | | | Conflicts: spec/models/xapian_spec.rb | |||
| * | fix fixtures order to avoid postgresql foreign key errors | James McKinney | 2011-10-11 | -7/+7 |
| | | ||||
* | | Clean up comments | David Cabo | 2011-08-18 | -27/+8 |
| | | ||||
* | | Testing Xapian test performance | David Cabo | 2011-08-16 | -18/+43 |
|/ | ||||
* | Fix up missing fixtures (causing failures dependent on order the tests were ↵ | Seb Bacon | 2011-08-10 | -1/+5 |
| | | | | funr). Also tidy up raw_email setup code to match everywhere. | |||
* | To make tests pass with RawEmails on the filesystem, instead of hacky ↵ | Seb Bacon | 2011-07-29 | -0/+18 |
| | | | | dependency on existence of text_binary field in raw_emails model, rewrite tests (and their fixtures) to explicitly load data from FS when raw_emails are used. | |||
* | Make sure the :public_body_translation fixture is included everywhere the ↵ | Robin Houston | 2011-06-09 | -3/+3 |
| | | | | :public_bodies fixture is, because the PublicBody objects do not work as expected without it. | |||
* | some test fixage | Seb Bacon | 2011-03-11 | -1/+0 |
| | ||||
* | Use destroy rather than delete to remove the public body in this xapian ↵ | Louise Crow | 2011-02-23 | -2/+2 |
| | | | | test. Now that we're using a sql schema format to populate the test database, it creates foreign keys and so on correctly, so a delete, which tries to delete the object without calling any callbacks, fails with a foreign key error as acts_as_versioned means there are still foreign keys to this record from its versions. | |||
* | Index tags on public bodies. | Francis Irving | 2010-10-09 | -0/+24 |
| | ||||
* | Index tags on info requests. | Francis Irving | 2010-10-09 | -0/+19 |
| | ||||
* | Make path work in Ruby 1.9 | Francis Irving | 2010-09-15 | -1/+1 |
| | ||||
* | Search index about me text, and tests to check that works | Francis Irving | 2010-07-18 | -0/+21 |
| | ||||
* | Test deleting public body from Xapian | Francis Irving | 2010-06-16 | -0/+14 |
| | ||||
* | Test of body URL names longer than 64 characters, that they still index | Francis Irving | 2010-06-16 | -0/+22 |
| | ||||
* | Don't put rebuild in before | Francis Irving | 2010-06-08 | -4/+4 |
| | ||||
* | Need this always.. | Francis Irving | 2010-06-08 | -1/+1 |
| | ||||
* | Needs comments too | Francis Irving | 2010-06-08 | -5/+5 |
| | ||||
* | Needs raw_emails so it can get all the file types to index them | Francis Irving | 2010-06-08 | -5/+5 |
| | ||||
* | Some more fixtures (which weren't needed if the tests are run in a | Francis Irving | 2010-05-19 | -3/+3 |
| | | | | certain order, but are in other orders) | |||
* | Test case for substring bug due to stemming, and fix for it. | Francis Irving | 2009-12-18 | -5/+10 |
| | ||||
* | Make query in this test reflect what happens in actual controller more | Francis Irving | 2009-12-17 | -4/+4 |
| | ||||
* | Test case for search where a user name is substring of another | Francis Irving | 2009-12-07 | -17/+50 |
| | ||||
* | Need associated incoming message so it can get the filetype. | francis | 2009-09-20 | -1/+1 |
| | ||||
* | Text change to encourage people to update the status of old requests | louise | 2009-04-27 | -1/+1 |
| | ||||
* | Various test fixes. | francis | 2009-04-22 | -20/+12 |
| | ||||
* | When URL of request changes, reindex its events. | francis | 2009-04-22 | -0/+32 |
| | ||||
* | Test search for when URL name of user changes. | francis | 2009-04-22 | -0/+42 |
| | | | | Remove duplicate code that dealt with that already. | |||
* | When user's URL changes, update Xapian index of requests made by them. | francis | 2009-04-21 | -1/+41 |
| | ||||
* | Update Xapian properly when body URL changes | francis | 2009-04-21 | -2/+42 |
| | ||||
* | Move Xapian tests into one file so they don't slow down normal model | tony | 2009-03-22 | -0/+40 |
tests. Add test for searching users. |