Commit message (Collapse) | Author | Age | Lines | |
---|---|---|---|---|
* | Standardize slug generation for external users so that it uses the same ↵ | Louise Crow | 2012-11-29 | -0/+16 |
| | | | | underlying method as other slug generation. Fixes #567. | |||
* | use safe_mock_model | James McKinney | 2012-11-01 | -6/+6 |
| | ||||
* | Allow InfoRequest.find_old_unclassified to accept an offset param so it can ↵ | Louise Crow | 2012-09-13 | -0/+8 |
| | | | | be used in conjunction with pagination. | |||
* | Add some more efficient methods for getting old unclassified request counts, ↵ | Louise Crow | 2012-09-11 | -11/+40 |
| | | | | and random sets of small numbers of old unclassified requests. | |||
* | Merge branch 'release/0.6.3' into develop | Louise Crow | 2012-08-22 | -19/+81 |
|\ | | | | | | | | | | | | | | | Conflicts: app/controllers/admin_public_body_controller.rb app/views/admin_public_body/import_csv.rhtml spec/controllers/admin_public_body_controller_spec.rb spec/models/info_request_spec.rb | |||
| * | Apply global and public body censor rules to binary files. | Louise Crow | 2012-08-14 | -23/+60 |
| | | ||||
| * | Add association between public bodies and censor rules, have info_request ↵ | Louise Crow | 2012-08-14 | -0/+8 |
| | | | | | | | | apply rules from its public body. | |||
| * | Add concept of global censor rules as orthogonal to regex censor rules. ↵ | Louise Crow | 2012-08-14 | -117/+135 |
| | | | | | | | | Apply global rules to every request, not regex rules. | |||
* | | Fix tests | Robin Houston | 2012-08-20 | -3/+3 |
| | | | | | | | | | | | | | | | | | | Also make the InfoRequest#is_old_unclassified? method a little more conservative, by returning false only is the is_external? method returns true. This makes it subtly inconsistent with InfoRequest.find_old_unclassified, but it is better I think to be subtly inconsistent than to risk breaking things that used to work. | |||
* | | Merge branch 'wdtk' into develop | Louise Crow | 2012-08-16 | -98/+127 |
|\ \ | |/ |/| | | | | | | | | | Conflicts: app/controllers/admin_request_controller.rb config/httpd.conf spec/models/info_request_spec.rb | |||
| * | Add method all_can_view? which can be used to determine whether it is ok to ↵ | Louise Crow | 2012-08-16 | -99/+128 |
| | | | | | | | | cache the associated objects for an info request in the file cache which will be served up without authentication. | |||
* | | Misc fixes to get tests to pass - notably a MonkeyPatch to work around ↵ | Seb Bacon | 2012-07-13 | -0/+1 |
| | | | | | | | | problem testing template results | |||
* | | Support regular expressions in CensorRules; also support 'global' ↵ | Seb Bacon | 2012-07-13 | -1/+20 |
|/ | | | | CensorRules that aren't attached to a User or Request or Public Body (but don't expose this in the admin UI). Fixes #33 | |||
* | 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. |