diff options
author | Seb Bacon <seb.bacon@gmail.com> | 2011-07-22 15:55:48 +0100 |
---|---|---|
committer | Seb Bacon <seb.bacon@gmail.com> | 2011-07-22 15:55:48 +0100 |
commit | 11a73eef1d83cfa3bc3c145de483fa81c25d6216 (patch) | |
tree | f8d6da387cdf48e1283bfac20c316358ff571708 /spec/models/raw_email_spec.rb | |
parent | 51f9ab2ac1b779e31aa54ebf9485a1a72eb7cee0 (diff) |
Store raw_emails in the filesystem, not in the database. They don't need to 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.
Diffstat (limited to 'spec/models/raw_email_spec.rb')
-rw-r--r-- | spec/models/raw_email_spec.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/models/raw_email_spec.rb b/spec/models/raw_email_spec.rb index 6f3a8acd6..ff2830a62 100644 --- a/spec/models/raw_email_spec.rb +++ b/spec/models/raw_email_spec.rb @@ -3,6 +3,10 @@ require File.expand_path(File.dirname(__FILE__) + '/../spec_helper') describe User, "manipulating a raw email" do before do @raw_email = RawEmail.new + incoming_message = mock_model(IncomingMessage) + info_request = mock_model(InfoRequest) + incoming_message.stub!(:info_request).and_return(info_request) + @raw_email.stub!(:incoming_message).and_return(incoming_message) end it 'putting data in comes back out' do |