app/models/ddr/batch/batch_object.rb in ddr-batch-1.3.0 vs app/models/ddr/batch/batch_object.rb in ddr-batch-1.4.0.rc1
- old
+ new
@@ -201,10 +201,10 @@
def verify_label(repo_object)
repo_object.label.eql?(label) ? VERIFICATION_PASS : VERIFICATION_FAIL
end
def verify_attribute(repo_object, attribute)
- repo_object.datastreams[attribute.datastream].values(attribute.name).include?(attribute.value) ?
+ repo_object.datastreams[attribute.datastream].values(attribute.name).include?(attribute.value.strip) ?
VERIFICATION_PASS : VERIFICATION_FAIL
end
def verify_datastream(repo_object, datastream)
if repo_object.datastreams.include?(datastream.name) &&