aboutsummaryrefslogtreecommitdiffstats
path: root/spec/models/info_request_spec.rb
Commit message (Collapse)AuthorAgeLines
* Some more URL name/title tests.francis2009-09-07-2/+2
|
* Don't allow numeric only URL names.francis2009-09-07-1/+17
| | | | Test the URL name code a bit.
* Various test fixes.francis2009-04-22-8/+2
|
* it's -> itstony2009-04-13-4/+4
|
* Make old_unclassfied function a bit more flexible for reuse elsewhere e.g. ↵louise2009-04-08-16/+26
| | | | in mailing reminders to requesters
* Moving logic for determining old and unclassified requests to the model in ↵louise2009-04-08-0/+64
| | | | preparation for allowing anyone to edit them
* TMail rebuilds address when constructing emails. Move our morefrancis2009-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 requiredlouise2009-04-06-28/+1
|
* Added methods to InfoRequest for figuring out if a user is the real owner of ↵louise2009-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 ↵louise2009-04-06-0/+29
| | | | RequestController
* Add method to info request for getting last event that needs a description - ↵louise2009-04-03-80/+103
| | | | will replace calculation in RequestController
* Don't need to roll our own messages now we can easily time travel.tony2009-03-19-52/+16
|
* Fixtures have to be set in every class that needs them, as they could be run ↵francis2009-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 stubbingtony2009-03-17-10/+2
|
* Better days_overdue tests by overriding Time.nowtony2009-03-17-2/+20
|
* very basic days_overdue teststony2009-03-17-0/+2
|
* Add due date test for info_requesttony2009-03-16-0/+5
|
* Move due date counting code into Holiday classtony2009-03-10-36/+0
|
* Change the holiday checking code to use new model class, rather thantony2009-03-09-1/+1
| | | | hardcoded table of data.
* add some tests for InfoRequest.calculate_statustony2009-03-09-0/+40
|
* Factor out due_date_for_request_date (partially - it should really livetony2009-03-06-1/+34
| | | | elsewhere), and add more tests for it
* Add test for date_response_required_by. (We need some more of these fortony2009-03-06-0/+4
| | | | more complex scenarios but this is useful for now)
* Fix up verboseness in testfrancis2009-01-23-3/+4
|
* Some more tests.francis2008-12-31-1/+14
|
* Minor test.francis2008-06-25-0/+6
|
* Cope with mistyped l instead of 1, and o instead of 0 in request emails.francis2008-06-11-1/+21
|
* Match magic email case insensitivelyfrancis2008-04-03-0/+6
|
* Get rid of special envelope from -bounce addresses, as they are no good sincefrancis2008-03-21-0/+6
| | | | enough public authorities mail them with non-automatic messages.
* If request is deleted, then send email on to admin, rather than raising anfrancis2008-03-17-0/+6
| | | | exception that goes to the public body in a delivery failure.
* Some more tests on user classfrancis2007-10-30-1/+1
|
* Add a couple of basic tests for InfoRequestfrancis2007-10-30-0/+22