aboutsummaryrefslogtreecommitdiffstats
path: root/spec/fixtures
Commit message (Collapse)AuthorAgeLines
* Oops. accidently deleted file in last commitMatthew Landauer2013-01-23-0/+1
|
* Fixes to ApplicationMailer tests in Rails 3Matthew Landauer2013-01-23-1/+0
|
* Convert url in comment to spec.Louise Crow2012-12-06-0/+31
| | | | | | Conflicts: lib/mail_handler/backends/tmail_backend.rb
* Convert example URL to spec.Louise Crow2012-12-06-0/+451
|
* Fix syntax of example email. The number of expected attachments was based on ↵Louise Crow2012-12-04-3/+2
| | | | the specific handling of a bad end boundary in tmail.
* Add spec for handling an RFC822 attachment.Louise Crow2012-12-04-0/+147
| | | | | | Conflicts: spec/models/incoming_message_spec.rb
* Add spec for the adding of headers to plain text bodies in attachments.Louise Crow2012-12-04-0/+50
|
* Move method for getting the to, cc and envelope-to addresses of a mail to ↵Louise Crow2012-12-04-12/+13
| | | | the mail handler.
* Merge branch 'feature/ruby-19-compat-immediate' into developLouise Crow2012-10-24-0/+391
|\ | | | | | | | | Conflicts: Gemfile.lock
| * Convert example in comment to failing spec, update regex to make spec pass - ↵Louise Crow2012-10-18-0/+318
| | | | | | | | again the use of converted HTML parts in emails means extra leading spaces.
| * Convert request cited in comment to failing spec, update regex to make it ↵Louise Crow2012-10-18-0/+73
| | | | | | | | pass (we now use the HTML parts of emails by preference, so there are some leading spaces.)
* | Show disclosure log link if availableMatthew Landauer2012-10-22-0/+7
|/
* 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
|\