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

pulibrary / pdc_describe / f4a769e7-d16f-471c-a5ba-30ed53344d3d

pending completion
f4a769e7-d16f-471c-a5ba-30ed53344d3d

Pull #1018

circleci

Hector Correa
Fixed the test data and restored the tests that I ignored in my previous commit
Pull Request #1018: Adds pagination, sorting, and download links to the file list for curated works

3 of 3 new or added lines in 2 files covered. (100.0%)

1845 of 1869 relevant lines covered (98.72%)

168.68 hits per line

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

78.57
/app/helpers/application_helper.rb
1
# frozen_string_literal: true
2
module ApplicationHelper
1✔
3
  ##
4
  # Attributes to add to the <html> tag (e.g. lang and dir)
5
  # @return [Hash]
6
  def html_tag_attributes
1✔
7
    { lang: I18n.locale }
236✔
8
  end
9

10
  def pre_curation_uploads_file_name(file:)
1✔
11
    value = file.filename.to_s
×
12
    return if value.blank?
×
13

14
    value[0..79]
×
15
  end
16
  alias post_curation_uploads_file_name pre_curation_uploads_file_name
1✔
17

18
  def ark_url(ark_value)
1✔
19
    return nil if ark_value.blank?
37✔
20
    # This was originally in Work#ark_url as: "https://ezid.cdlib.org/id/#{ark}"
21
    "http://arks.princeton.edu/#{ark_value}"
37✔
22
  end
23

24
  def doi_url(doi_value)
1✔
25
    return nil if doi_value.blank?
126✔
26
    "https://doi.org/#{doi_value}"
126✔
27
  end
28
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