aboutsummaryrefslogtreecommitdiffstats
path: root/spec
Commit message (Collapse)AuthorAgeLines
* Merge remote-tracking branch 'openaustralia/redirect_email_for_testing' into ↵Robin Houston2012-09-28-0/+8
|\ | | | | | | develop
| * Extract methodMatthew Landauer2012-09-27-1/+1
| |
| * Add option to override all public body request emailsMatthew Landauer2012-09-27-0/+8
| |
* | Add spec fixtures for theme views, missing from ↵Louise Crow2012-09-27-0/+6
|/ | | | 6b6e943ab17b53ef4b20e303a079e4f4f6a0c300.
* Remove debug line.Louise Crow2012-09-26-1/+0
|
* Make template finding for themes work with multipart mails. Fixes #628.Louise Crow2012-09-25-2/+155
|
* Test for the presence of the explanatory text as well when checking the ↵Louise Crow2012-09-25-1/+4
| | | | response to an email to a fully closed request.
* Merge remote-tracking branch 'openaustralia_github/calendar_days' into developLouise Crow2012-09-24-33/+70
|\
| * Rename methodMatthew Landauer2012-09-24-4/+4
| |
| * Handle times passed to Holiday.due_date_from_calendar_daysMatthew Landauer2012-09-24-0/+4
| |
| * Add due date calculation based on calendar days rather than working daysMatthew Landauer2012-09-24-30/+63
| |
* | Updating spec for 550f143.Louise Crow2012-09-20-35/+36
| |
* | Add an option to disable comments on a requestRobin Houston2012-09-19-1/+37
| | | | | | | | Closes #30.
* | Ensure non-nil publication_scheme in fixtures so that example data worksMatthew Landauer2012-09-18-0/+3
|/
* Paginate the timeline to allow it to render in a reasonable amount of time. ↵Louise Crow2012-09-13-12/+33
| | | | In order to avoid sorting large numbers of objects in order to get the right order of combined events across the two model types, get the overall order first from the database and then populate the slice we're interested in.
* Allow InfoRequest.find_old_unclassified to accept an offset param so it can ↵Louise Crow2012-09-13-0/+8
| | | | be used in conjunction with pagination.
* Add appropriate counter caches for public body fixtures.Louise Crow2012-09-12-5/+9
|
* Memoize the notes_without_html calculated value for the life of the model ↵Louise Crow2012-09-12-0/+14
| | | | instance - no need to keep applying the regex if called multiple times e.g. in a view.
* Move default value setting for publication scheme to before_save callback ↵Louise Crow2012-09-12-5/+9
| | | | rather than after_initialize - after_initialize accessing of the variable value was causing eager loading of public body translations to happen after the first attribute access, resulting in n+1 queries for translations.
* Merge branch 'develop' of ssh://git.mysociety.org/data/git/public/alaveteli ↵Louise Crow2012-09-11-20/+72
|\ | | | | | | into develop
| * Add a since_date parameter to the API feedRobin Houston2012-09-10-0/+15
| |
| * Update other testsRobin Houston2012-09-07-20/+25
| | | | | | | | Update the other API tests to take account of the changed error behaviour.
| * Merge branch 'develop' of github.com:mysociety/alaveteli into developRobin Houston2012-09-04-0/+4
| |\
| * | API errors should be JSONRobin Houston2012-09-04-0/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The API was returning Rails (HTML) errors for certain error conditions, which is inconvenient because it makes it difficult for the client to extract the error message. This patch changes add_correspondence to return JSON errors (still with suitable HTTP status codes) for two common exceptional conditions, and adds tests.
* | | Bugfix in spec.Louise Crow2012-09-11-1/+1
| | |
* | | Ignore spacing differences when checking generated SQL, use caps for SQL ↵Louise Crow2012-09-11-9/+24
| | | | | | | | | | | | reserved words.
* | | Record a status update by someone other than the request owner as a request ↵Louise Crow2012-09-11-2/+12
| | | | | | | | | | | | classification.
* | | Add some more efficient methods for getting old unclassified request counts, ↵Louise Crow2012-09-11-11/+40
| |/ |/| | | | | and random sets of small numbers of old unclassified requests.
* | Quote name correctly in query. Fixes #598.Louise Crow2012-09-04-0/+4
|/
* Merge branch 'feature/repo-move' into developLouise Crow2012-08-30-46/+46
|\
| * Update references to point to the mySociety repo.Louise Crow2012-08-29-46/+46
| |
* | Give external request request event unique timestamp to fix spec failure ↵Louise Crow2012-08-29-1/+1
| | | | | | | | caused by two requests with identical last event timestamps.
* | Update spec for previous commit.Louise Crow2012-08-29-2/+2
| |
* | Fix for the case where an external request has no user_nameLouise Crow2012-08-29-11/+21
| |
* | Fix basic admin interface in case where external request without username is ↵Louise Crow2012-08-29-0/+5
| | | | | | | | being displayed.
* | Add fixture for an external request without a username.Louise Crow2012-08-29-12/+44
|/
* Add headings and by_heading accessors to PublicBodyCategories to allow ↵Louise Crow2012-08-28-0/+42
| | | | easier access to headings and to tags associated with a particular heading.
* Now that external request followups can't be made and status can't be ↵Louise Crow2012-08-23-12/+104
| | | | updated, don't show links or text that suggests they can.
* Don't allow status updates on external requests from the front end interface ↵Louise Crow2012-08-23-259/+331
| | | | | | (they can still be changed from the admin interface). Final part of fix for #562.
* Don't show 'requester only' actions for an external request.Louise Crow2012-08-23-0/+12
| | | | Part of the fix for #562.
* Don't error on a request to followup an external request.Louise Crow2012-08-23-0/+16
| | | | Partial solution to #562.
* Handle the case where someone wants to add an annotation to a successful ↵Louise Crow2012-08-23-0/+20
| | | | | | external request. Fixes #563.
* Merge branch 'release/0.6.3' into developLouise Crow2012-08-22-86/+360
|\ | | | | | | | | | | | | | | 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
| * Rework the temporary storing of a csv file of public body info between a dry ↵Louise Crow2012-08-20-18/+98
| | | | | | | | run and real load. Use a temp file, not the session for the data. Also fixes #503.
| * Add warning about regex censor rules.Louise Crow2012-08-14-1/+1
| | | | | | | | Fix spec to accommodate validation of text presence.
| * Validate presence of text to replace in censor rules.Louise Crow2012-08-14-0/+6
| |
| * Add basic validation for regexp censor rules that a valid regexp can be ↵Louise Crow2012-08-14-1/+35
| | | | | | | | created with the text of the rule.
| * Make global validation work correctly for regex censor rules.Louise Crow2012-08-14-2/+9
| |
| * Apply global and public body censor rules to binary files.Louise Crow2012-08-14-23/+60
| |
| * Add case of a regex censor rule to test of binary masking.Louise Crow2012-08-14-13/+20
| |