aboutsummaryrefslogtreecommitdiffstats
path: root/spec/models
Commit message (Collapse)AuthorAgeLines
* it's -> itstony2009-04-13-4/+4
|
* Adding a flag to allow user model to be saved without reindexing associated ↵louise2009-04-09-8/+59
| | | | models
* Adding specs for track alert emails. All users get updated, which I think ↵louise2009-04-09-1/+94
| | | | causes extra xapian updating
* Reminders sent to users to update the status of their request now use ↵louise2009-04-08-2/+2
| | | | InfoRequest.find_old_unclassified
* Make old_unclassfied function a bit more flexible for reuse elsewhere e.g. ↵louise2009-04-08-16/+26
| | | | in mailing reminders to requesters
* Adding specs for current behaviour of RequestMailer when sending out ↵louise2009-04-08-1/+79
| | | | reminders to requesters to classify a response to their request
* 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-3/+31
| | | | | | 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
* Tests for use of different addresses in replies.francis2009-04-08-16/+51
| | | | | Fix bug in quoting of those replies. Make it remove @ signs from name part of them.
* Start to add test for the mail reply address functions.francis2009-04-07-1/+31
|
* Allow request owners or admins to update the status of a request at any time ↵louise2009-04-07-6/+6
| | | | from the main request page
* 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
* Add a convenience method User.requires_admin_power? for determining whether ↵louise2009-04-06-1/+21
| | | | a user has the power to edit "requires_admin" requests
* 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
* Need history loaded in fixture in order to find by it.francis2009-03-30-1/+1
|
* Move Xapian tests into one file so they don't slow down normal modeltony2009-03-22-21/+40
| | | | tests. Add test for searching users.
* Add admin + banned tests to Usertony2009-03-22-0/+18
|
* Test for specific errors in Usertony2009-03-22-3/+3
|
* Add some new TrackThing teststony2009-03-22-1/+21
|
* split into distinct named teststony2009-03-22-10/+11
|
* rspec provides a useful errors_on testtony2009-03-22-4/+5
|
* Rollback 14514 and 14515 - model can't call methods in general_controllertony2009-03-22-8/+1
|
* Add 'xapian_requests' methods to PublicBodytony2009-03-22-3/+8
|
* Add PublicBody.find_by_urlname method that falls back to historic namestony2009-03-22-0/+21
|
* Only rebuild the Xapian index once, rather than for each test, as we'retony2009-03-22-2/+1
| | | | not modifying the index between them.
* add test for not allowing a user to use an email address as their nametony2009-03-20-1/+8
|
* Don't need to roll our own messages now we can easily time travel.tony2009-03-19-52/+16
|
* Index the notes field.francis2009-03-18-0/+22
|
* 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.
* Whoops, didn't remove slashes from subjects.francis2009-03-17-0/+11
|
* Fix bug with slashes in attachment filenamesfrancis2009-03-17-0/+11
|
* 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
|
* Test that Time objects DTRTtony2009-03-16-0/+4
|
* Move due date counting code into Holiday classtony2009-03-10-36/+43
|
* 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
|
* Blank out emails in outgoing messages. Hope I've got every case.francis2009-03-07-1/+20
|
* 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
|
* Move TMail monkeypatches out of incoming_message intofrancis2008-11-21-0/+5
|
* Make link on first response arrived email not be login one, as people ↵francis2008-11-10-0/+1
| | | | | | | forward it about. Make link on later ones go straight to top green box. Give ids to the green boxes.
* Fix up test code, and some bugs relating to splitting out raw_email data.francis2008-09-22-2/+2
|
* Store incoming messages which aren't to a valid request in a holding pen, andfrancis2008-07-08-1/+8
| | | | let people move them from admin interface.