lib/saml/kit/metadata.rb in saml-kit-1.1.0 vs lib/saml/kit/metadata.rb in saml-kit-1.2.0

- old
+ new

@@ -180,21 +180,21 @@ def metadata at_xpath("/md:EntityDescriptor/md:#{name}").present? end def must_contain_descriptor - errors[:base] << error_message(:invalid) unless metadata + errors.add(:base, error_message(:invalid)) unless metadata end def must_match_xsd matches_xsd?(METADATA_XSD) end def must_have_valid_signature return if !signature.present? || signature.valid? signature.errors.each do |attribute, error| - errors[attribute] << error + errors.add(attribute, error) end end end end end