Commit message (Collapse) | Author | Age | Lines | |
---|---|---|---|---|
* | Load all fixtures for all tests | Robin Houston | 2012-01-31 | -13/+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. | |||
* | Test duplicate requests are coalesced | Robin Houston | 2012-01-29 | -0/+5 |
| | | | | Test that duplicate requests are coalesced on the front page. | |||
* | Change order of requests on front page | Robin Houston | 2012-01-29 | -1/+6 |
| | | | | | | | Put the most-recently-answered first, rather than the most-recently-reclassified. This is inspired by issue #370, though it does not fix all the issues raised in that ticket. (The wording is still outright misleading in some cases.) | |||
* | More test data, and fix tests | Robin Houston | 2012-01-29 | -6/+16 |
| | | | | | | 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 | -3/+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. | |||
* | More test data and a new test | Robin Houston | 2012-01-27 | -2/+4 |
| | | | | | This is a test for what I thought issue #370 might be. However this test is passing, so it isn’t that. | |||
* | Add a trivial test for the list of recent requests | Robin Houston | 2012-01-27 | -0/+12 |
| | ||||
* | Improve test isolation | Robin Houston | 2012-01-24 | -0/+2 |
| | | | | | Towards #361. Fixes: spec/models/xapian_spec.rb spec/controllers/general_controller_spec.rb | |||
* | Fix a bunch of order-dependent failures | Robin Houston | 2012-01-24 | -1/+1 |
| | | | | This fixes a lot of the failures in #361. | |||
* | Remove assumption | Robin Houston | 2012-01-20 | -6/+5 |
| | | | | | | | I feel uncomfortable about the assumption that FastGettext.default_available_locales is always equal to I18n.available_locales. Even if that’s true now, it might not always be -- and if a bug causes them to become erroneously different, the previous code would have masked that. | |||
* | Make sure the FakeWeb registry is kept clean | Robin Houston | 2012-01-20 | -0/+7 |
| | | | | | | | To be fair this change does not seem to make any tests pass that didn’t pass before, but (based on my limited understanding) it seems like a good idea. It also conforms to how FakeWeb is used in application_controller_spec.rb. | |||
* | Be sure to restore RoutingFilters | Robin Houston | 2012-01-20 | -2/+0 |
| | | | | | | There were some order-dependent test failures that turned out to be caused by the fact that the RoutingFilters were cleared and not subsequently restored, by some tests. | |||
* | Test fix that belongs to e82ca928a140400f8446dba85014a0c9059e789b | Seb Bacon | 2012-01-17 | -1/+1 |
| | ||||
* | Fail silently if third party services are broken or unavailable. Fixes #354. | Seb Bacon | 2012-01-17 | -0/+10 |
| | ||||
* | Merge remote-tracking branch 'jpmckinney/pre1.9' into develop | Seb Bacon | 2011-11-24 | -2/+2 |
|\ | | | | | | | | | Conflicts: spec/controllers/request_controller_spec.rb | |||
| * | fix spec example for 1.9 | James McKinney | 2011-10-17 | -2/+2 |
| | | ||||
* | | allow specs to run independently | James McKinney | 2011-10-16 | -9/+13 |
|/ | ||||
* | fix fixtures order to avoid postgresql foreign key errors | James McKinney | 2011-10-11 | -3/+3 |
| | ||||
* | Make the general search return requests only, by default | Seb Bacon | 2011-09-01 | -1/+1 |
| | ||||
* | Add tests & fixes for new search/filtering functionality | Seb Bacon | 2011-08-29 | -0/+28 |
| | ||||
* | Fixes to get tests to pass following addition of new search / filter ↵ | Seb Bacon | 2011-08-29 | -1/+1 |
| | | | | functionality | |||
* | Monkey patch around bug that was stripping out quotes from search phrases. ↵ | Seb Bacon | 2011-08-15 | -1/+0 |
| | | | | Fixes #38 | |||
* | Fix up missing fixtures (causing failures dependent on order the tests were ↵ | Seb Bacon | 2011-08-10 | -0/+4 |
| | | | | funr). Also tidy up raw_email setup code to match everywhere. | |||
* | Introduce config setting to ignore browser language settings | Seb Bacon | 2011-08-08 | -1/+15 |
| | ||||
* | Ensure we use sensible fallbacks for setting the default / initial locale ↵ | Seb Bacon | 2011-08-08 | -0/+21 |
| | | | | for a user. (Partially) fixes #114 | |||
* | Fail silently if there's no user matching one referenced in the current ↵ | Seb Bacon | 2011-08-03 | -0/+7 |
| | | | | session. Fixes #105 | |||
* | Only prepend locales to paths when there's more than one locale to choose from. | Seb Bacon | 2011-07-15 | -0/+23 |
| | | | | Replaces core "locale" filter with customised one. Fixes #82 | |||
* | Argh! Another spec that uses the :public_bodies fixture and needs | Robin Houston | 2011-06-20 | -0/+1 |
| | | | | :public_body_translations to be added for it to work correctly. | |||
* | Rebuild xapian index after fixture loading | Louise Crow | 2011-02-17 | -24/+37 |
| | ||||
* | Make path work in Ruby 1.9 | Francis Irving | 2010-09-15 | -1/+1 |
| | ||||
* | Need raw emails (I think it was relying on cached in database entries ↵ | francis | 2009-09-20 | -1/+1 |
| | | | | | | before, when it shouldn't have been) | |||
* | Simplifying fixtures for general controller | louise | 2009-05-05 | -1/+1 |
| | ||||
* | Rebuild in an :all | tony | 2009-03-22 | -6/+2 |
| | ||||
* | Call rebuild_xapian_index in more tests to reduce order dependency | tony | 2009-03-13 | -5/+0 |
| | ||||
* | Fix up test code, and some bugs relating to splitting out raw_email data. | francis | 2008-09-22 | -1/+1 |
| | ||||
* | Rename new_frontpage to frontpage. | francis | 2008-09-08 | -11/+0 |
| | | | | Remove public_body_query, only used by old frontpage. | |||
* | Fixture for comments, and fix most tests relating to it. | francis | 2008-08-15 | -1/+1 |
| | ||||
* | Test code for search separated by type. | francis | 2008-05-15 | -22/+12 |
| | ||||
* | Get test code working with Xapian index. | francis | 2008-05-05 | -6/+13 |
| | ||||
* | Fix up test code with Xapian. | francis | 2008-04-30 | -4/+4 |
| | ||||
* | More stuff for Solr to Xapian change | francis | 2008-04-24 | -11/+12 |
| | ||||
* | Search index by events, rather than by requests/messages | francis | 2008-03-31 | -4/+4 |
| | ||||
* | Test code for search and the front page. | francis | 2008-03-19 | -12/+60 |
| | ||||
* | Fix up tests. | francis | 2008-03-06 | -0/+26 |