diff options
author | Seb Bacon <seb.bacon@gmail.com> | 2011-12-21 16:51:10 +0000 |
---|---|---|
committer | Seb Bacon <seb.bacon@gmail.com> | 2011-12-21 16:54:43 +0000 |
commit | 79fd89c5aec01ea035d57c5a71213202dafc778c (patch) | |
tree | 6f1d3fb4d215f069995634907f2bb32e9220ac22 /spec/spec_helper.rb | |
parent | 54acb0afaca770c14a7529f292eba3768e3a5040 (diff) | |
parent | 37b2fb482d31f77865bb889c049450d72876df92 (diff) |
Merge branch 'cache-foi-attachments-seb' into develop. Fixes #108.
Diffstat (limited to 'spec/spec_helper.rb')
-rw-r--r-- | spec/spec_helper.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index e5a42f1a9..5c5cd9a7f 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -78,6 +78,7 @@ def load_file_fixture(file_name) end def rebuild_xapian_index(terms = true, values = true, texts = true, dropfirst = true) + parse_all_incoming_messages if dropfirst begin ActsAsXapian.readable_init @@ -168,3 +169,7 @@ def load_raw_emails_data(raw_emails) end raw_email.data = load_file_fixture("useless_raw_email.email") end + +def parse_all_incoming_messages + IncomingMessage.find(:all).each{|x| x.parse_raw_email!} +end |