aboutsummaryrefslogtreecommitdiffstats
path: root/spec/support/email_helpers.rb
diff options
context:
space:
mode:
authorLouise Crow <louise.crow@gmail.com>2013-05-28 15:14:44 +0100
committerLouise Crow <louise.crow@gmail.com>2013-05-28 15:14:44 +0100
commitef682f7d7c3402713efea88775b246c3c7960aa2 (patch)
treee4918a75cf1a24eecaab287602cf561245b611fc /spec/support/email_helpers.rb
parent988becbb62e42feb9b62af27cdb2ec67b409032a (diff)
parentc248356a8e8a13513827381977b24f7406f96a8c (diff)
Merge branch 'rails-3-develop' of ssh://git.mysociety.org/data/git/public/alaveteli into rails-3-develop
Conflicts: Gemfile.lock
Diffstat (limited to 'spec/support/email_helpers.rb')
-rw-r--r--spec/support/email_helpers.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/support/email_helpers.rb b/spec/support/email_helpers.rb
index 7e98c39f6..252b1f137 100644
--- a/spec/support/email_helpers.rb
+++ b/spec/support/email_helpers.rb
@@ -8,7 +8,7 @@ end
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 = File.open(email_name, 'rb') { |f| f.read }
content.gsub!('EMAIL_TO', email_to)
content.gsub!('EMAIL_FROM', email_from)
RequestMailer.receive(content)