diff options
author | Seb Bacon <seb.bacon@gmail.com> | 2011-07-25 13:29:55 +0100 |
---|---|---|
committer | Seb Bacon <seb.bacon@gmail.com> | 2011-07-25 14:07:21 +0100 |
commit | a51aa8a93246e6c10efec14dec8efbdf3301db5f (patch) | |
tree | 42ed43dd8ac5db14bbb7173f5784d0b0edbe2fd6 /spec/models | |
parent | b1559ff033a3eeb289d50d1caadba0190a139cd9 (diff) |
move load-email-fixtures-to-filesystem hack to global config, so that we 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...
Diffstat (limited to 'spec/models')
-rw-r--r-- | spec/models/outgoing_mailer_spec.rb | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/spec/models/outgoing_mailer_spec.rb b/spec/models/outgoing_mailer_spec.rb index 83da7a553..24143fc9b 100644 --- a/spec/models/outgoing_mailer_spec.rb +++ b/spec/models/outgoing_mailer_spec.rb @@ -6,23 +6,6 @@ describe OutgoingMailer, " when working out follow up addresses" do # mocks. Put parts of the tests in spec/lib/tmail_extensions.rb fixtures :info_requests, :incoming_messages, :raw_emails, :public_bodies, :public_body_translations - before do - # XXX this is a hack around the fact that our raw_email model - # is in transition to something that doesn't actually live in - # the database at all. The raw_email fixture saves to the - # model, the model then needs to be told to save itself on the - # filesystem. - raw_email = raw_emails(:useless_raw_email) - raw_email.data=raw_email.dbdata - end - - after do - # And this is a hack around the fact that Rails fixtures don't - # have teardowns happen on them; we need to ensure no emails - # are left lying around - raw_emails(:useless_raw_email).destroy_file_representation! - end - it "should parse them right" do ir = info_requests(:fancy_dog_request) im = ir.incoming_messages[0] |