Skip to content

joho/rspec_xml_validation_matchers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Xml validation rspec matcher

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages