An open API service indexing awesome lists of open source software.

https://github.com/joho/rspec_xml_validation_matchers

Xml validation rspec matcher
https://github.com/joho/rspec_xml_validation_matchers

Last synced: about 1 month ago
JSON representation

Xml validation rspec matcher

Awesome Lists containing this project

README

          

rspec_xml_validation_matchers
=============================

Setup
------

Dependencies:
-------------

* rspec
* rspec_on_rails
* libxml

Overview
--------

Adds some matchers to check if some xml conforms to a dtd/xsd

Usage
-----

describe User do
before do
@user = User.new
end

it "should create xml that conforms to the dtd" do
@user.to_xml.should conform_to_dtd('user.dtd')
end

it "should create xml that conforms to the xsd" do
@user.to_xml.should conform_to_dtd('user.xsd')
end
end

Developer
---------

John Barton - http://whoisjohnbarton.com
c/o
Eden Creative Communities - http://eden.cc