push
travis-ci
2 of 2 new or added lines in 1 file covered. (100.0%)
4212 existing lines in 143 files now uncovered.2654 of 7765 relevant lines covered (34.18%)
4.51 hits per line
UNCOV
1
|
class SystemMailer < ActionMailer::Base |
× |
UNCOV
2
|
default :from => ENV['EMAIL_FROM_ADDRESS'].presence || 'you@example.com' |
× |
UNCOV
3
|
|
× |
UNCOV
4
|
def send_message(options) |
× |
UNCOV
5
|
@groups = options[:groups] |
× |
UNCOV
6
|
@headline = options[:headline] |
× |
UNCOV
7
|
@body = options[:body] |
× |
UNCOV
8
|
|
× |
UNCOV
9
|
mail_options = { to: options[:to], subject: options[:subject] } |
× |
UNCOV
10
|
mail_options[:from] = options[:from] if options[:from].present? |
× |
UNCOV
11
|
if options[:content_type].present? |
× |
UNCOV
12
|
mail(mail_options) do |format|
|
× |
UNCOV
13
|
format.text if options[:content_type] == "text/plain" |
× |
UNCOV
14
|
format.html if options[:content_type] == "text/html" |
× |
UNCOV
15
|
end
|
× |
UNCOV
16
|
else
|
× |
UNCOV
17
|
mail(mail_options) |
× |
UNCOV
18
|
end
|
× |
UNCOV
19
|
end
|
× |
UNCOV
20
|
end
|
× |