code4lib / ruby-oai

a Ruby library for building OAI-PMH clients and servers
MIT License
62 stars 42 forks source link

Tests could validate against OAI-PMH.xsd #75

Open jrochkind opened 4 years ago

jrochkind commented 4 years ago

One or more tests could validate against an actual OAI-PMH.xsd schema.

http://www.openarchives.org/OAI/2.0/OAI-PMH.xsd

This would be easier if #68 were done, cause nokogiri has XSD validating features.

It might be easier if we switched from Test::Unit to rspec, rspec's testing support features like re-usable specs and clearer ways to re-use logic in various ways might make it easier to validate various responses against the XSD.