diff options
author | Henare Degan <henare.degan@gmail.com> | 2012-12-12 13:47:12 +1100 |
---|---|---|
committer | Henare Degan <henare.degan@gmail.com> | 2012-12-12 15:27:57 +1100 |
commit | 6e63699743941457962d53827e683fc085555aae (patch) | |
tree | 5f6cd31ebb3cd2352288cd7623f5dfc25c43cd8f /spec/spec_helper.rb.rails2 | |
parent | 0969c6997e3795fa8c2b0d77b283b9746369a0b8 (diff) |
safe_mock_model doesn't seem to be needed, also tested in Ruby 1.9
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 |