From 0a5b470e28f67c191d962706cf5b1be039d770bf Mon Sep 17 00:00:00 2001 From: Henare Degan Date: Wed, 12 Dec 2012 14:18:33 +1100 Subject: Allow the FoiAttachment specs to run --- spec/spec_helper.rb.rails2 | 8 -------- 1 file changed, 8 deletions(-) (limited to 'spec/spec_helper.rb.rails2') diff --git a/spec/spec_helper.rb.rails2 b/spec/spec_helper.rb.rails2 index c433896e7..ab2f11d27 100644 --- a/spec/spec_helper.rb.rails2 +++ b/spec/spec_helper.rb.rails2 @@ -107,14 +107,6 @@ def parse_all_incoming_messages IncomingMessage.find(:all).each{ |x| x.parse_raw_email! } end -def load_raw_emails_data - raw_emails_yml = File.join(Spec::Runner.configuration.fixture_path, "raw_emails.yml") - for raw_email_id in YAML::load_file(raw_emails_yml).map{|k,v| v["id"]} do - raw_email = RawEmail.find(raw_email_id) - raw_email.data = load_file_fixture("raw_emails/%d.email" % [raw_email_id]) - end -end - # Rebuild the current xapian index def rebuild_xapian_index(terms = true, values = true, texts = true, dropfirst = true) if dropfirst -- cgit v1.2.3