From 1fc3bea6cb0a2fc5e26c171dd7f83dc155c962f9 Mon Sep 17 00:00:00 2001 From: Henare Degan Date: Wed, 12 Dec 2012 14:21:26 +1100 Subject: Allow the IncomingMessage model specs to run --- spec/spec_helper.rb.rails2 | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'spec/spec_helper.rb.rails2') diff --git a/spec/spec_helper.rb.rails2 b/spec/spec_helper.rb.rails2 index ab2f11d27..a904f7bad 100644 --- a/spec/spec_helper.rb.rails2 +++ b/spec/spec_helper.rb.rails2 @@ -95,14 +95,6 @@ Spec::Runner.configure do |config| end # XXX No idea what namespace/class/module to put this in -def receive_incoming_mail(email_name, email_to, email_from = 'geraldinequango@localhost') - email_name = file_fixture_name(email_name) - content = File.read(email_name) - content.gsub!('EMAIL_TO', email_to) - content.gsub!('EMAIL_FROM', email_from) - RequestMailer.receive(content) -end - def parse_all_incoming_messages IncomingMessage.find(:all).each{ |x| x.parse_raw_email! } end @@ -164,10 +156,6 @@ def safe_mock_model(model, args = {}) mock end -def get_fixture_mail(filename) - MailHandler.mail_from_raw_email(load_file_fixture(filename)) -end - def load_test_categories PublicBodyCategories.add(:en, [ "Local and regional", -- cgit v1.2.3