aboutsummaryrefslogtreecommitdiffstats
path: root/spec/models/incoming_message_spec.rb
Commit message (Collapse)AuthorAgeLines
* In fact, the message in the example URL was not being folded properly ↵Louise Crow2012-10-11-0/+7
| | | | anymore. Add a failing spec using it as an example.
* Convert example url from comment into passing spec.Louise Crow2012-10-11-0/+7
|
* Clean up spec a bit.Louise Crow2012-10-11-8/+1
|
* Add test for handling a multipart mail with a linebreak in the boundary.Louise Crow2012-10-11-0/+8
|
* Remove debug line.Louise Crow2012-10-11-1/+0
|
* Handle the case where an incoming message is badly encoded and has no ↵Louise Crow2012-10-09-0/+10
| | | | charset on the part we're using as a main part.
* Extract configuration with defaults into one moduleMatthew Landauer2012-09-25-2/+1
|
* Add case of a regex censor rule to test of binary masking.Louise Crow2012-08-14-13/+20
|
* Need another stub nowRobin Houston2012-06-07-0/+1
|
* Better test assertionsRobin Houston2012-02-03-17/+17
| | | | | Change the test assertions so they give more informative errors when they fail -- as they sometimes do: see issue #408.
* Load all fixtures for all testsRobin Houston2012-01-31-8/+0
| | | | | | | | | The ad hoc specification of fixtures has been an ongoing source of bugs in the tests. The straw that broke the camel’s back is that 7c6eb09 requires the fixtures to be loaded in order (i.e. children before their parents), and it would have been a painful process to reorder all the dozens of different fixture lists, but the test system ought to be more reliable this way.
* Load all raw emails for testingRobin Houston2012-01-29-7/+7
| | | | | | | | | | | 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.
* Use correct column type for sent_at date (was only preserving time and not ↵Seb Bacon2012-01-10-0/+2
| | | | date, resulting in incoming_messages all apparently being sent on January 1, 2000)
* Ensure attachments have been parsed before generating cached extractsSeb Bacon2012-01-05-0/+7
|
* Correctly test for auto-submitted headers. Fixes #316.Seb Bacon2012-01-05-14/+13
|
* Display internationalized emails correctly (specifically, RFC2047 headers, ↵Seb Bacon2012-01-04-0/+22
| | | | and HTML emails with encoding in a meta-tag). Fixes #281
* Ensure we always censor safe_mail_from; and mention new only-parse-once ↵Seb Bacon2011-12-21-5/+3
| | | | feature in CHANGES.md
* Further improvements to attachment cachingSeb Bacon2011-12-13-8/+5
|
* WIP on caching attachmentsSeb Bacon2011-12-12-31/+44
|
* Merge remote-tracking branch 'jpmckinney/pre1.9' into developSeb Bacon2011-11-24-0/+1
|\ | | | | | | | | Conflicts: spec/controllers/request_controller_spec.rb
| * add encoding magic comments and fix pathsJames McKinney2011-10-16-0/+1
| |
* | allow specs to run independentlyJames McKinney2011-10-16-4/+4
|/
* test folded sections and fix fixture orderingJames McKinney2011-10-11-4/+16
|
* Improve signature folding regexp. Fixes issue #253.Seb Bacon2011-10-11-0/+9
|
* Improve detection of autoresponse emails, so we can discourage users from ↵Seb Bacon2011-09-09-7/+53
| | | | replying to them. Fixes #137 (partially)
* Force elinks to assume UTF8 character set for its input (used when making ↵Seb Bacon2011-08-12-0/+7
| | | | plain text versions of HTML email)
* Remove more whatdotheyknow references. Closes #113 (I think).Seb Bacon2011-08-12-0/+7
|
* Apply censor rules even when pdftk refuses to compress. Also provide for ↵Seb Bacon2011-08-10-4/+15
| | | | alternative to pdftk for compression. Closes #123.
* Fix up missing fixtures (causing failures dependent on order the tests were ↵Seb Bacon2011-08-10-3/+3
| | | | funr). Also tidy up raw_email setup code to match everywhere.
* Add missing :info_requests fixture to test that depends on itSeb Bacon2011-07-29-1/+1
|
* To make tests pass with RawEmails on the filesystem, instead of hacky ↵Seb Bacon2011-07-29-0/+4
| | | | dependency on existence of text_binary field in raw_emails model, rewrite tests (and their fixtures) to explicitly load data from FS when raw_emails are used.
* Make sure the :public_body_translation fixture is included everywhere the ↵Robin Houston2011-06-09-2/+2
| | | | :public_bodies fixture is, because the PublicBody objects do not work as expected without it.
* Make path work in Ruby 1.9Francis Irving2010-09-15-1/+1
|
* It's Gorgonzola nowFrancis Irving2010-08-04-1/+1
|
* Oops, got test slightly wrong.Francis Irving2010-08-04-1/+1
|
* Do censoring of whole users if the rules are there.Francis Irving2010-08-04-1/+41
|
* Merge commit 'peter/tnef'Francis Irving2010-03-20-0/+18
|\
| * Support for Outlook TNEF filesPeter Collingbourne2010-03-15-0/+18
| |
* | Do not binary mask the pdf if pdftk silently fails producing no outputPeter Collingbourne2010-03-15-0/+7
|/
* Another missing fixture.Francis Irving2010-03-10-1/+1
|
* Add another missing fixtureFrancis Irving2010-03-10-1/+1
|
* Prefer HTML to other alternative typesFrancis Irving2010-03-09-1/+1
|
* Merge commit 'peter/master'Francis Irving2010-03-09-0/+18
|\ | | | | | | | | | | | | Conflicts: config/environment.rb Merge patch from Peter Collingbourne for handling Outlook attachments.
| * Implement decoding of Outlook msg/oft filesPeter Collingbourne2010-02-18-0/+18
| |
* | Note on this test failing for certain version of pdftkFrancis Irving2010-03-09-0/+3
|/
* Test for attaching attachments case, where the email attached is offFrancis Irving2009-12-22-0/+20
| | | | type octet-stream, so we don't know it is an email until later.
* Fix test to work with new way of uudecodingFrancis Irving2009-12-03-2/+6
|
* Method renamedfrancis2009-09-17-3/+3
|
* Make a few more calls modify strings in place to reduce memory use.francis2009-09-15-1/+1
|
* More tests.francis2009-09-15-0/+36
|