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
- Host: GitHub
- URL: https://github.com/joho/rspec_xml_validation_matchers
- Owner: joho
- License: mit
- Created: 2008-06-04T04:21:32.000Z (about 18 years ago)
- Default Branch: master
- Last Pushed: 2008-06-04T07:38:40.000Z (about 18 years ago)
- Last Synced: 2025-01-26T02:52:18.638Z (over 1 year ago)
- Language: Ruby
- Homepage:
- Size: 78.1 KB
- Stars: 3
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
- License: MIT-LICENSE
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