• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

pulibrary / allsearch_api / 4cbdb37b-f46e-4a9d-b7a0-07c5d418f37c

31 Oct 2025 06:56PM UTC coverage: 99.903% (+0.003%) from 99.9%
4cbdb37b-f46e-4a9d-b7a0-07c5d418f37c

push

circleci

web-flow
Merge pull request #389 from pulibrary/rom-rb-2

Replace uses of the Banner ActiveRecord model with Rom-RB

34 of 39 new or added lines in 4 files covered. (87.18%)

63 existing lines in 13 files now uncovered.

1031 of 1032 relevant lines covered (99.9%)

112.35 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

100.0
/app/models/library_database_document.rb
1
# frozen_string_literal: true
2

3
# This class is responsible for getting relevant
4
# metadata from the LibraryDatabaseRecord in the database
5
# The document is a LibraryDatabaseRecord
6
class LibraryDatabaseDocument < Document
3✔
7
  private
3✔
8

9
  def title
3✔
UNCOV
10
    document.name
24✔
11
  end
12

13
  # Not relevant for this service
14
  def creator; end
3✔
15

16
  # Not relevant for this service
17
  def publisher; end
3✔
18

19
  def id
3✔
UNCOV
20
    document.libguides_id
24✔
21
  end
22

23
  def type
3✔
UNCOV
24
    'Database'
24✔
25
  end
26

27
  def description
3✔
UNCOV
28
    sanitize document.description
24✔
29
  end
30

31
  def url
3✔
UNCOV
32
    document.friendly_url
24✔
33
  end
34

35
  def doc_keys
3✔
UNCOV
36
    [:subjects, :alternative_titles]
24✔
37
  end
38

39
  def subjects
3✔
UNCOV
40
    document.subjects&.join(', ')
24✔
41
  end
42

43
  def alternative_titles
3✔
UNCOV
44
    document.alt_names&.join(', ')
24✔
45
  end
46
end
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc