aboutsummaryrefslogtreecommitdiffstats
path: root/spec/models/outgoing_mailer_spec.rb
Commit message (Collapse)AuthorAgeLines
* Load all fixtures for all testsRobin Houston2012-01-31-2/+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-2/+2
| | | | | | | | | | | 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.
* Fix sporadic spurious test failuresRobin Houston2012-01-19-0/+8
| | | | | ...by forcing the IncomingMessage to be re-parsed after we have edited it.
* allow specs to run independentlyJames McKinney2011-10-16-2/+2
|
* Remove stray (debugging?) puts statementRobin Houston2011-09-08-1/+0
|
* To make tests pass with RawEmails on the filesystem, instead of hacky ↵Seb Bacon2011-07-29-7/+5
| | | | 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.
* move load-email-fixtures-to-filesystem hack to global config, so that we ↵Seb Bacon2011-07-25-17/+0
| | | | don't need to remember to run it everywhere that the raw_emails fixture is used. At the same time, correct the migration that previously removed the data_binary column, as this is assumed for fixture loading. In a future iteration, we should probably stop abusing fixtures like this...
* Store raw_emails in the filesystem, not in the database. They don't need to ↵Seb Bacon2011-07-22-2/+29
| | | | | | be in the database (we never write to them, for example), and they bloat it unecessarily, making backups etc difficult. NOTE: this migration could take a *very* long time.
* Make sure the :public_body_translation fixture is included everywhere the ↵Robin Houston2011-06-09-1/+1
| | | | :public_bodies fixture is, because the PublicBody objects do not work as expected without it.
* some test fixageSeb Bacon2011-03-11-1/+1
|
* Make path work in Ruby 1.9Francis Irving2010-09-15-1/+1
|
* Use better subject when replying to delivery error notificationsFrancis Irving2010-03-09-0/+11
|
* Use "Re:" the subject that the authority used for replies.Francis Irving2010-02-18-0/+47
|
* Migrate to using a binary database field for storing raw emails, rather than ↵Francis Irving2009-10-30-4/+4
| | | | | | text. Does it gradually, so existing column is left alone to speed things up.
* Forgot to add this.francis2009-10-04-0/+69