# Test XML Documents Using assert\_select

**URL:** <https://discuss.rubyonrails.org/t/test-xml-documents-using-assert-select/15375>\
**Category:** rubyonrails-core\
**Created:** [July 6, 2007, 10:58pm UTC](https://discuss.rubyonrails.org/t/test-xml-documents-using-assert-select/15375 "2007-07-06T22:58:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gabe\_da\_Silveira1](https://avatars.discourse-cdn.com/v4/letter/g/ce7236/32.png) [@Gabe\_da\_Silveira1](https://discuss.rubyonrails.org/u/Gabe_da_Silveira1)\
**Post date:** [July 6, 2007, 10:58pm UTC](https://discuss.rubyonrails.org/t/test-xml-documents-using-assert-select/15375/1 "2007-07-06T22:58:07Z")

</div>

Have you ever wanted to test your API output without those pesky assert\_select error messages? Well now you can!

[http://dev.rubyonrails.org/ticket/8173](http://dev.rubyonrails.org/ticket/8173)

The patch has been sitting there quietly with no comment for a couple months now. I think it should be pretty easy to apply. It won't affect standard HTML output or even XHTML given IE's inability understand the standard application/xhtml+xml, and even if HTML was served as HTML it would only raise warnings on invalid markup.

Thoughts?
