push
travis-ci
246 of 273 relevant lines covered (90.11%)
54.39 hits per line
1 |
module Hydra::PCDM::Validators |
2 all except jruby-head ✔ |
2 |
class PCDMValidator |
2 all except jruby-head ✔ |
3 |
def self.validate!(reflection, record) |
2 all except jruby-head ✔ |
4 |
if !record.try(:pcdm_object?) && !record.try(:pcdm_collection?) |
602 all except jruby-head ✔ |
5 |
raise ActiveFedora::AssociationTypeMismatch.new "#{record} is not a PCDM object or collection." |
× |
6 |
end
|
|
7 |
end
|
|
8 |
end
|
|
9 |
end
|