Commit message (Collapse) | Author | Age | Lines | |
---|---|---|---|---|
* | Load all fixtures for all tests | Robin Houston | 2012-01-31 | -7/+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 | -1/+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. | |||
* | Further improvements to attachment caching | Seb Bacon | 2011-12-13 | -1/+1 |
| | ||||
* | Merge remote-tracking branch 'jpmckinney/pre1.9' into develop | Seb Bacon | 2011-11-24 | -2/+2 |
|\ | | | | | | | | | Conflicts: spec/controllers/request_controller_spec.rb | |||
| * | add safe_mock_model to safely handle #to_ary calls in 1.9 | James McKinney | 2011-10-17 | -2/+2 |
| | | ||||
* | | allow specs to run independently | James McKinney | 2011-10-16 | -5/+5 |
|/ | ||||
* | fix fixtures order to avoid postgresql foreign key errors | James McKinney | 2011-10-11 | -4/+4 |
| | ||||
* | Fix up missing fixtures (causing failures dependent on order the tests were ↵ | Seb Bacon | 2011-08-10 | -1/+1 |
| | | | | funr). Also tidy up raw_email setup code to match everywhere. | |||
* | Guess holding pen emails based on having a correct hash and an incorrect id. ↵ | Seb Bacon | 2011-08-08 | -0/+34 |
| | | | | Closes #117 | |||
* | added missing outgoing_messages fixture to test | David Cabo | 2011-07-23 | -1/+1 |
| | ||||
* | test with state other than "requires_admin" (as that state sends emails and ↵ | Seb Bacon | 2011-07-13 | -1/+1 |
| | | | | breaks other tests :() | |||
* | Refactor custom states loading (use class methods where appropriate, ↵ | Seb Bacon | 2011-07-12 | -1/+2 |
| | | | | simplify main code at the cost (small) of test legibility) | |||
* | ensure we don't load custom states from plugins when running tests | Seb Bacon | 2011-07-12 | -1/+1 |
| | ||||
* | Improve factoring out of custom states code (refactor a little, add tests) | Seb Bacon | 2011-07-12 | -0/+36 |
| | ||||
* | include necessary fixtures to get tests always to pass even when run on ↵ | Seb Bacon | 2011-06-28 | -2/+2 |
| | | | | their own | |||
* | 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. | |||
* | Make path work in Ruby 1.9 | Francis Irving | 2010-09-15 | -1/+1 |
| | ||||
* | Extend long stop deadline to 60 working days for schools. | Francis Irving | 2009-12-11 | -2/+54 |
| | | | | Change basic display text. | |||
* | Add very overdue state with 40 working days. | Francis Irving | 2009-12-10 | -2/+16 |
| | ||||
* | Symmetrically, put a time in this test | Francis Irving | 2009-12-10 | -1/+1 |
| | ||||
* | Make sure fixture has expected sent date. | Francis Irving | 2009-12-10 | -0/+4 |
| | ||||
* | Test case for search where a user name is substring of another | Francis Irving | 2009-12-07 | -2/+1 |
| | ||||
* | how different flash if going back to game, vs staying on page of request. ↵ | francis | 2009-10-03 | -8/+8 |
| | | | | Link to request in former case. | |||
* | Fix another case. | francis | 2009-09-17 | -5/+5 |
| | ||||
* | Some more URL name/title tests. | francis | 2009-09-07 | -2/+2 |
| | ||||
* | Don't allow numeric only URL names. | francis | 2009-09-07 | -1/+17 |
| | | | | Test the URL name code a bit. | |||
* | Various test fixes. | francis | 2009-04-22 | -8/+2 |
| | ||||
* | it's -> its | tony | 2009-04-13 | -4/+4 |
| | ||||
* | Make old_unclassfied function a bit more flexible for reuse elsewhere e.g. ↵ | louise | 2009-04-08 | -16/+26 |
| | | | | in mailing reminders to requesters | |||
* | Moving logic for determining old and unclassified requests to the model in ↵ | louise | 2009-04-08 | -0/+64 |
| | | | | preparation for allowing anyone to edit them | |||
* | TMail rebuilds address when constructing emails. Move our more | francis | 2009-04-08 | -1/+9 |
| | | | | | | aggressive quoting rule into a TMail monkey patch proper so it is always called when constructing emails, and remove the hacky function (Address.encode_quoted_string) it used to call in special places | |||
* | Remove real_owning_user method - not required | louise | 2009-04-06 | -28/+1 |
| | ||||
* | Added methods to InfoRequest for figuring out if a user is the real owner of ↵ | louise | 2009-04-06 | -2/+53 |
| | | | | the request (not just an admin owner) and if the request needs admin | |||
* | Adding is_owning_user? method to info request to replace logic in ↵ | louise | 2009-04-06 | -0/+29 |
| | | | | RequestController | |||
* | Add method to info request for getting last event that needs a description - ↵ | louise | 2009-04-03 | -80/+103 |
| | | | | will replace calculation in RequestController | |||
* | Don't need to roll our own messages now we can easily time travel. | tony | 2009-03-19 | -52/+16 |
| | ||||
* | Fixtures have to be set in every class that needs them, as they could be run ↵ | francis | 2009-03-18 | -1/+2 |
| | | | | | | | in any order. It doesn't seem to clear database between tests - just overwrite the fixtures that are set, so making it work if it happened to have the right one before. | |||
* | Can change time much more easily with RSpec's stubbing | tony | 2009-03-17 | -10/+2 |
| | ||||
* | Better days_overdue tests by overriding Time.now | tony | 2009-03-17 | -2/+20 |
| | ||||
* | very basic days_overdue tests | tony | 2009-03-17 | -0/+2 |
| | ||||
* | Add due date test for info_request | tony | 2009-03-16 | -0/+5 |
| | ||||
* | Move due date counting code into Holiday class | tony | 2009-03-10 | -36/+0 |
| | ||||
* | Change the holiday checking code to use new model class, rather than | tony | 2009-03-09 | -1/+1 |
| | | | | hardcoded table of data. | |||
* | add some tests for InfoRequest.calculate_status | tony | 2009-03-09 | -0/+40 |
| | ||||
* | Factor out due_date_for_request_date (partially - it should really live | tony | 2009-03-06 | -1/+34 |
| | | | | elsewhere), and add more tests for it | |||
* | Add test for date_response_required_by. (We need some more of these for | tony | 2009-03-06 | -0/+4 |
| | | | | more complex scenarios but this is useful for now) | |||
* | Fix up verboseness in test | francis | 2009-01-23 | -3/+4 |
| | ||||
* | Some more tests. | francis | 2008-12-31 | -1/+14 |
| | ||||
* | Minor test. | francis | 2008-06-25 | -0/+6 |
| | ||||
* | Cope with mistyped l instead of 1, and o instead of 0 in request emails. | francis | 2008-06-11 | -1/+21 |
| |