circleci
2 of 2 new or added lines in 1 file covered. (100.0%)
305 existing lines in 35 files now uncovered.5410 of 5979 relevant lines covered (90.48%)
1344.54 hits per line
1 |
# frozen_string_literal: true
|
|
2 |
|
|
3 |
# Only works for documents with a #to_marc right now.
|
|
UNCOV
4
|
class RecordMailer < ActionMailer::Base |
× |
UNCOV
5
|
def email_record(documents, details, url_gen_params) |
× |
UNCOV
6
|
subject = if details[:subject]&.first.present? |
× |
UNCOV
7
|
details[:subject].first
|
× |
UNCOV
8
|
else
|
× |
UNCOV
9
|
I18n.t('blacklight.email.text.subject', count: documents.length, title: '') |
× |
UNCOV
10
|
end
|
× |
11 |
|
|
UNCOV
12
|
@documents = documents
|
× |
UNCOV
13
|
@message = details[:message] |
× |
UNCOV
14
|
@url_gen_params = url_gen_params
|
× |
15 |
|
|
UNCOV
16
|
mail(to: details[:to], reply_to: details[:reply_to], subject:) |
× |
UNCOV
17
|
end
|
× |
18 |
|
|
UNCOV
19
|
def sms_record(documents, details, url_gen_params) |
× |
20 |
@documents = documents
|
× |
21 |
@url_gen_params = url_gen_params
|
× |
22 |
mail(to: details[:to], subject: '') |
× |
UNCOV
23
|
end
|
× |
UNCOV
24
|
end
|
× |