mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-12 18:34:22 +01:00
fix failing tests
* tests failed on a local changes site.yml * somehow universal_newline leaves \r, so bring back gsub to remove them
This commit is contained in:
parent
d2a6af63bd
commit
8226be68b3
1 changed files with 2 additions and 2 deletions
|
|
@ -34,8 +34,8 @@ class MessageGateway < ActionMailer::Base
|
|||
attachment = todo.attachments.build
|
||||
|
||||
# create temp file
|
||||
tmp = Tempfile.new(['attachment', '.eml'], universal_newline: true)
|
||||
tmp.write email.raw_source
|
||||
tmp = Tempfile.new(['attachment', '.eml'], {universal_newline: true})
|
||||
tmp.write email.raw_source.gsub(/\r/, "")
|
||||
|
||||
# add temp file to attachment. paperclip will copy the file to the right location
|
||||
Rails.logger.info "Saved received email to #{tmp.path}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue