aboutsummaryrefslogtreecommitdiffstats
path: root/spec/models/xapian_spec.rb
Commit message (Collapse)AuthorAgeLines
* Use new function that copies existing xapian index in spec setup where a ↵Louise Crow2012-11-21-11/+11
| | | | clean copy of the xapian index with fixtures loaded is required.
* Fix test for updated test dataRobin Houston2012-06-07-1/+1
| | | | | Replace another constant with a computed value, so we can accommodate new test data without spuriously failing.
* Make test more flexibleRobin Houston2012-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 testsRobin Houston2012-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 testingRobin Houston2012-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 addedRobin Houston2012-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 loadedRobin Houston2012-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 Bacon2012-01-13-8/+11
| | | | issue #343.
* Further improvements to attachment cachingSeb Bacon2011-12-13-0/+1
|
* add ability to rebuild specific terms rather than all indices -- useful for ↵Seb Bacon2011-12-05-1/+62
| | | | migrations where new terms have been added (see rake:xapian:rebuild_index help)
* Merge branch 'develop' into xapian-dcaboSeb Bacon2011-11-24-8/+8
|\ | | | | | | | | Conflicts: spec/models/xapian_spec.rb
| * allow specs to run independentlyJames McKinney2011-10-16-8/+8
| |
* | Merge branch 'develop' into xapian-dcaboseb2011-11-24-30/+23
|\| | | | | | | | | Conflicts: spec/models/xapian_spec.rb
| * fix fixtures order to avoid postgresql foreign key errorsJames McKinney2011-10-11-7/+7
| |
* | Clean up commentsDavid Cabo2011-08-18-27/+8
| |
* | Testing Xapian test performanceDavid Cabo2011-08-16-18/+43
|/
* Fix up missing fixtures (causing failures dependent on order the tests were ↵Seb Bacon2011-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 Bacon2011-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 Houston2011-06-09-3/+3
| | | | :public_bodies fixture is, because the PublicBody objects do not work as expected without it.
* some test fixageSeb Bacon2011-03-11-1/+0
|
* Use destroy rather than delete to remove the public body in this xapian ↵Louise Crow2011-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 Irving2010-10-09-0/+24
|
* Index tags on info requests.Francis Irving2010-10-09-0/+19
|
* Make path work in Ruby 1.9Francis Irving2010-09-15-1/+1
|
* Search index about me text, and tests to check that worksFrancis Irving2010-07-18-0/+21
|
* Test deleting public body from XapianFrancis Irving2010-06-16-0/+14
|
* Test of body URL names longer than 64 characters, that they still indexFrancis Irving2010-06-16-0/+22
|
* Don't put rebuild in beforeFrancis Irving2010-06-08-4/+4
|
* Need this always..Francis Irving2010-06-08-1/+1
|
* Needs comments tooFrancis Irving2010-06-08-5/+5
|
* Needs raw_emails so it can get all the file types to index themFrancis Irving2010-06-08-5/+5
|
* Some more fixtures (which weren't needed if the tests are run in aFrancis Irving2010-05-19-3/+3
| | | | certain order, but are in other orders)
* Test case for substring bug due to stemming, and fix for it.Francis Irving2009-12-18-5/+10
|
* Make query in this test reflect what happens in actual controller moreFrancis Irving2009-12-17-4/+4
|
* Test case for search where a user name is substring of anotherFrancis Irving2009-12-07-17/+50
|
* Need associated incoming message so it can get the filetype.francis2009-09-20-1/+1
|
* Text change to encourage people to update the status of old requestslouise2009-04-27-1/+1
|
* Various test fixes.francis2009-04-22-20/+12
|
* When URL of request changes, reindex its events.francis2009-04-22-0/+32
|
* Test search for when URL name of user changes.francis2009-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.francis2009-04-21-1/+41
|
* Update Xapian properly when body URL changesfrancis2009-04-21-2/+42
|
* Move Xapian tests into one file so they don't slow down normal modeltony2009-03-22-0/+40
tests. Add test for searching users.