aboutsummaryrefslogtreecommitdiffstats
path: root/spec/models
Commit message (Collapse)AuthorAgeLines
* 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.
* 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
|
* Have test file for each model.francis2008-05-21-8/+20
|
* Bullet list in credits on about page.francis2008-05-21-0/+12
| | | | | | | | | | | Rename rss_at to described_at. Email alerts based on date of description, not just creation date (so don't miss things that were created before alert but described only recently) Tidy up when described vs. newest is used for sort order. Caching of text extracted from attachments, and display in search results. Add some tests for things that aren't tested. (alright, maybe we *should* use git/hg if I'm going to keep doing this many separate commits on a train)
* Option to stop new respones for individual requests which for whatever reasonfrancis2008-05-19-1/+22
| | | | are getting spam.
* Store incoming and outgoing message id in the table for info request events, ↵francis2008-04-15-0/+1
| | | | so has proper foreign key.
* More tests stufffrancis2008-04-14-1/+0
|
* Stop the wrapping code breaking up long URLsfrancis2008-04-14-0/+12
|
* 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.
* Forgot to commit this.francis2008-03-21-0/+8
|
* Add missing model tests.francis2008-03-21-0/+52
|
* 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.
* Remove complaint_email field as we were never filling it in or using it. ↵francis2008-03-17-12/+0
| | | | There are more important things.
* Add tests for broken case of saving info request or user when there is ↵francis2008-03-15-0/+13
| | | | | | existing one with same title/name. Fix the bug, which was in function that makes url_title/url_name.
* Add NOT NULL constraints into the database everywherefrancis2008-01-24-0/+6
|
* Oopsfrancis2008-01-18-2/+2
|