diff options
author | Louise Crow <louise.crow@gmail.com> | 2012-09-26 14:27:45 +0100 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2012-09-26 14:27:45 +0100 |
commit | 32879a8be48b527dc25240f9f5a4dd7db04f0884 (patch) | |
tree | c048161ce73f7b422083c4f1074d53881fd3971a /lib/tasks | |
parent | c850afa5b8460aff07bcbe528fefcca9a60cf35f (diff) |
Better line formatting.
Diffstat (limited to 'lib/tasks')
-rw-r--r-- | lib/tasks/translation.rake | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/lib/tasks/translation.rake b/lib/tasks/translation.rake index f28bec2bd..0eb39f5e7 100644 --- a/lib/tasks/translation.rake +++ b/lib/tasks/translation.rake @@ -1,7 +1,7 @@ -# require File.join(File.dirname(__FILE__), 'usage') +require File.join(File.dirname(__FILE__), 'usage') namespace :translation do - # include Usage + include Usage def write_email(email, email_description, output_file) mail_object = TMail::Mail.parse(email.to_s) @@ -77,9 +77,15 @@ namespace :translation do "test body", "attachment.txt", "test attachment text") - write_email(fake_response_email, 'Email created when someone uploads a response directly', output_file) + write_email(fake_response_email, + 'Email created when someone uploads a response directly', + output_file) - content = File.read(File.join(Rails.root, 'spec', 'fixtures', 'files', 'incoming-request-plain.email')) + content = File.read(File.join(Rails.root, + 'spec', + 'fixtures', + 'files', + 'incoming-request-plain.email')) response_mail = TMail::Mail.parse(content) response_mail.from = "authority@example.com" @@ -95,7 +101,9 @@ namespace :translation do new_response_email = RequestMailer.create_new_response(info_request, incoming_message) - write_email(new_response_email, 'Telling the requester that a new response has arrived', output_file) + write_email(new_response_email, + 'Telling the requester that a new response has arrived', + output_file) overdue_alert_email = RequestMailer.create_overdue_alert(info_request, info_request.user) write_email(overdue_alert_email, |