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

samvera / hydra-pcdm / 65136fe3-7459-42d0-8dcf-fad3664e0817

21 Apr 2023 06:52PM UTC coverage: 72.072% (-27.9%) from 100.0%
65136fe3-7459-42d0-8dcf-fad3664e0817

push

circleci

web-flow
Release 1.3.0 (#299)

160 of 222 relevant lines covered (72.07%)

8.92 hits per line

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

54.55
/lib/hydra/pcdm/validators/ancestor_validator.rb
1
module Hydra::PCDM::Validators
12✔
2
  class AncestorValidator
12✔
3
    def self.validate!(association, record)
12✔
4
      new(association.owner, record).validate!
×
5
    end
6

7
    attr_reader :owner, :record
12✔
8
    def initialize(owner, record)
12✔
9
      @owner = owner
×
10
      @record = record
×
11
    end
12

13
    def validate!
12✔
14
      return unless owner.ancestor?(record)
×
15
      raise ArgumentError, "#{record.class} with ID: #{record.id} failed to pass AncestorChecker validation"
×
16
    end
17
  end
18
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