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

pulibrary / pdc_describe / 00dac745-55d3-4397-95bf-de4f70881e93

pending completion
00dac745-55d3-4397-95bf-de4f70881e93

Pull #995

circleci

Hector Correa
Add tests for new logic
Pull Request #995: Handles external user ids

8 of 8 new or added lines in 1 file covered. (100.0%)

936 of 1902 relevant lines covered (49.21%)

9.91 hits per line

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

50.0
/app/models/pdc_metadata/affiliation.rb
1
# frozen_string_literal: true
2
# Class for storing an affiliation in our local representation
3
module PDCMetadata
1✔
4
  # value:      "datacite"
5
  # identifier: "https://ror.org/04aj4c181"
6
  # scheme:     "ROR"
7
  # scheme_uri: "https://ror.org/"
8
  class Affiliation
1✔
9
    attr_accessor :value, :identifier, :scheme, :scheme_uri
1✔
10
    def initialize(value: nil, identifier: nil, scheme: nil, scheme_uri: nil)
1✔
11
      @value = value
×
12
      @identifier = identifier
×
13
      @scheme = scheme
×
14
      @scheme_uri = scheme_uri
×
15
    end
16
  end
17
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