diff options
Diffstat (limited to 'spec/spec_helper.rb.rails2')
-rw-r--r-- | spec/spec_helper.rb.rails2 | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/spec/spec_helper.rb.rails2 b/spec/spec_helper.rb.rails2 index 79b335b1d..c433896e7 100644 --- a/spec/spec_helper.rb.rails2 +++ b/spec/spec_helper.rb.rails2 @@ -103,21 +103,6 @@ def receive_incoming_mail(email_name, email_to, email_from = 'geraldinequango@lo RequestMailer.receive(content) end -def file_fixture_name(file_name) - return File.join(Spec::Runner.configuration.fixture_path, "files", file_name) -end - -def load_file_fixture(file_name, as_binary=false) - file_name = file_fixture_name(file_name) - content = File.open(file_name, 'r') do |file| - if as_binary - file.set_encoding(Encoding::BINARY) if file.respond_to?(:set_encoding) - end - file.read - end - return content -end - def parse_all_incoming_messages IncomingMessage.find(:all).each{ |x| x.parse_raw_email! } end |