aboutsummaryrefslogtreecommitdiffstats
path: root/spec/fixtures
Commit message (Collapse)AuthorAgeLines
* In fact, the message in the example URL was not being folded properly ↵Louise Crow2012-10-11-0/+112
| | | | anymore. Add a failing spec using it as an example.
* Add test for handling a multipart mail with a linebreak in the boundary.Louise Crow2012-10-11-0/+37
|
* Handle the case where an incoming message is badly encoded and has no ↵Louise Crow2012-10-09-0/+38
| | | | charset on the part we're using as a main part.
* Make wording slightly more consistent by replacing 'public bodies' with ↵Matthew Landauer2012-09-29-6/+6
| | | | 'public authorities'
* Add spec fixtures for theme views, missing from ↵Louise Crow2012-09-27-0/+6
| | | | 6b6e943ab17b53ef4b20e303a079e4f4f6a0c300.
* Add an option to disable comments on a requestRobin Houston2012-09-19-1/+10
| | | | Closes #30.
* Ensure non-nil publication_scheme in fixtures so that example data worksMatthew Landauer2012-09-18-0/+3
|
* Add appropriate counter caches for public body fixtures.Louise Crow2012-09-12-5/+9
|
* 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.
* 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.
* Add fixture for an external request without a username.Louise Crow2012-08-29-12/+44
|
* Merge branch 'develop' of github.com:sebbacon/alaveteli into developRobin Houston2012-06-23-0/+13071
|\ | | | | | | | | | | | | | | Conflicts: Gemfile.lock script/handle-mail-replies script/handle-mail-replies.rb spec/controllers/request_controller_spec.rb
| * Ensure we generate URLs containing the current locale, even if the locale ↵Seb Bacon2012-06-14-0/+4259
| | | | | | | | | | | | contains an underscore. Includes a bonus test to ensure that locales with unknown territories fall back to known languages.
| * Use PO files from `spec/fixtures/locale` rather than the application - makes ↵Seb Bacon2012-06-14-0/+8812
| | | | | | | | it less brittle.
* | Use a fixture for the external requestRobin Houston2012-06-06-0/+31
| |
* | Fix typo in fixture yamlRobin Houston2012-06-06-2/+2
| | | | | | | | | | I’m sure created_at should not have been there twice. Presumably the second one was supposed to be updated_at.
* | Fix test and fixtures so they only fail due to missing business logic ↵Seb Bacon2012-06-06-0/+6
|/ | | | (corrected typo, added missing fixture data, etc)
* Test for user turning email alerts off. Also includes a fix not to rely on ↵Seb Bacon2012-05-30-0/+5
| | | | HTTP_REFERER for subsequent redirect.
* Handle yet another style of bounceRobin Houston2012-05-01-0/+168
|
* Recognise another variety of bounce messageRobin Houston2012-04-30-0/+513
|
* Add some tag fixtures, so that the default Alaveteli theme's public body ↵Seb Bacon2012-01-30-0/+36
| | | | categories have something to work with. Currently not used in any tests.
* Test duplicate requests are coalescedRobin Houston2012-01-29-1/+180
| | | | Test that duplicate requests are coalesced on the front page.
* Change order of requests on front pageRobin Houston2012-01-29-6/+6
| | | | | | | Put the most-recently-answered first, rather than the most-recently-reclassified. This is inspired by issue #370, though it does not fix all the issues raised in that ticket. (The wording is still outright misleading in some cases.)
* More test data, and fix testsRobin Houston2012-01-29-9/+37
| | | | | | Add some more test data, and fix the tests to accommodate both this new test data and the fact that raw emails are now correctly loaded into the test environment.
* Load all raw emails for testingRobin Houston2012-01-29-0/+20
| | | | | | | | | | | 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.
* More test data and a new testRobin Houston2012-01-27-2/+100
| | | | | This is a test for what I thought issue #370 might be. However this test is passing, so it isn’t that.
* Add a trivial test for the list of recent requestsRobin Houston2012-01-27-10/+61
|
* Refactor test code so new test data can be addedRobin Houston2012-01-26-4/+28
| | | | | | | | Previously many of the tests made assumptions about the global structure of the test data set: the total number of requests, for example, or the names of all public bodies. This makes it difficult to add to the test data. This change is intended to make the test data easier to extend by eliminating such global assumptions.
* Fix bug introduced in cec2c545e0a10e0641c4ee67839c88d872b394b8, related to ↵Seb Bacon2012-01-13-0/+32
| | | | issue #343.
* Don't give error when viewing HTML versions. Fixes issue #321Seb Bacon2012-01-08-0/+543
|
* Display internationalized emails correctly (specifically, RFC2047 headers, ↵Seb Bacon2012-01-04-0/+462
| | | | and HTML emails with encoding in a meta-tag). Fixes #281
* Merge branch 'develop' of github.com:sebbacon/alaveteli into developRobin Houston2011-12-30-0/+1
|\
| * Further improvements to attachment cachingSeb Bacon2011-12-13-4/+1
| |
| * WIP on caching attachmentsSeb Bacon2011-12-12-0/+4
| |
* | Recognise a couple of newly-seen types of out-of-office messageRobin Houston2011-12-30-0/+667
|/
* Improve signature folding regexp. Fixes issue #253.Seb Bacon2011-10-11-0/+417
|
* Extra tests to sanity check UTF conversion (see issue #128 for background)Seb Bacon2011-10-10-0/+68
|
* Merge branch 'develop' of github.com:sebbacon/alaveteli into developDavid Cabo2011-09-19-0/+293
|\
| * Merge branch 'wdtk' into developRobin Houston2011-09-19-0/+293
| |\
| | * Detect OOF messages that identify themselves by a X-POST-MessageClass headerRobin Houston2011-09-08-0/+63
| | |
| | * More out-of-office message detectionRobin Houston2011-09-08-0/+62
| | |
| | * More out-of-office message detectionRobin Houston2011-09-08-0/+58
| | |
| | * Improved OOF detectionRobin Houston2011-09-08-0/+110
| | | | | | | | | | | | Slightly improved detection of out-of-office messages, + tests.
* | | Add support for add/replace tags when importing public bodies from CSV. ↵David Cabo2011-09-19-0/+4
|/ / | | | | | | Fixes #60
* | Add support for tags to CSV import, via field "tag_string" (issue #60)David Cabo2011-09-13-4/+4
| |
* | Improve detection of autoresponse emails, so we can discourage users from ↵Seb Bacon2011-09-09-0/+43
| | | | | | | | replying to them. Fixes #137 (partially)
* | Merge branch 'wdtk' into developRobin Houston2011-09-08-1/+194
|\| | | | | | | | | | | Conflicts: config/general.yml-example spec/models/track_mailer_spec.rb
| * Fix User.should_be_emailed?Robin Houston2011-09-08-1/+14
| | | | | | | | | | The User.should_be_emailed? method needs to be public. It should also be tested.
| * Detect multipart/report bounce messagesRobin Houston2011-09-07-0/+180
| | | | | | | | | | Add support for multipart/report bounce messages to script/handle-mail-replies. Also add a spec test for this script.
* | Store user's locale against profile, so we can send them localised track ↵Seb Bacon2011-09-03-0/+3
| | | | | | | | emails. Also internationalize more strings at the same time. Fixes #163.