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

pulibrary / allsearch_api / 2edd1296-888c-4592-8789-a3202a060f6a

14 Oct 2025 05:48PM UTC coverage: 99.9% (+0.6%) from 99.32%
2edd1296-888c-4592-8789-a3202a060f6a

push

circleci

web-flow
Merge pull request #398 from pulibrary/replace-all-controllers

Replace all of our Rails controllers with Rack applications

12 of 12 new or added lines in 6 files covered. (100.0%)

116 existing lines in 19 files now uncovered.

995 of 996 relevant lines covered (99.9%)

115.81 hits per line

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

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

3
# This class is responsible for getting relevant
4
# metadata from PULFALight's JSON
5
class FindingaidsDocument < Document
3✔
6
  include SolrDocument
3✔
7

8
  private
3✔
9

10
  def service
3✔
UNCOV
11
    'findingaids'
51✔
12
  end
13

14
  # Use the collection name as the title?
15
  def title
3✔
UNCOV
16
    document[:collection_ssm]&.first
51✔
17
  end
18

19
  def creator
3✔
UNCOV
20
    document[:creator_ssm]&.first
51✔
21
  end
22

23
  # No sensible field to map to this currently
24
  def publisher
3✔
25
    # tbd - nothing in the current json that seems relevant
26
  end
27

28
  def type
3✔
UNCOV
29
    document[:level_ssm]&.first
51✔
30
  end
31

32
  # This field may contain html
33
  def description
3✔
UNCOV
34
    sanitize document[:abstract_ssm]&.first
51✔
35
  end
36

37
  def doc_keys
3✔
UNCOV
38
    [:access_restriction, :date, :extent, :repository]
51✔
39
  end
40

41
  def repository
3✔
UNCOV
42
    document[:repository_ssm]&.first
51✔
43
  end
44

45
  def extent
3✔
UNCOV
46
    document[:extent_ssm]&.to_sentence
51✔
47
  end
48

49
  def access_restriction
3✔
UNCOV
50
    document[:accessrestrict_ssm]&.first
51✔
51
  end
52

53
  def date
3✔
UNCOV
54
    document[:normalized_date_ssm]&.first
51✔
55
  end
56
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

© 2025 Coveralls, Inc