
have_xpath is wrapping xml with html
Reported by flazz | November 19th, 2008 @ 07:01 PM
failing spec here:http://gist.github.com/26833
from #webrat
brynary> flazz: so Webrat itself is not adding the html wrapper, I think it's nokogiri
Comments and changes to this ticket
-
Bryan Helmkamp November 22nd, 2008 @ 04:47 PM
- State changed from new to resolved
(from [a8e02a6b6e686cc4fd7b9c16b5fec88ae14179c9]) Switch to using Nokogiri.parse for XML/XHTML autodetection [#66 state:resolved] http://github.com/brynary/webrat...
-
tomo June 3rd, 2009 @ 05:19 PM
This bug reappeared in http://github.com/brynary/webrat/commit/f92f9bead8a4d457fdeca8e7a0b...
Scope#dom checks the Content-Type, but have_xpath doesn't.
I patched it by making Webrat.nokogiri_document check the content_type and use xml_nokogiri_document if it's text/xml. Not sure if this is the best way.
http://github.com/tomo/webrat/commit/54e0abc35c34f3053664d5d4763799... -
tomo June 3rd, 2009 @ 05:26 PM
whoops, the patch is at http://github.com/tomo/webrat/commit/a42ceae5aa6fd2ac152e25721ae74f...
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
Ruby Acceptance Testing for Web applications.
People watching this ticket
Referenced by
-
66 have_xpath is wrapping xml with html (from [a8e02a6b6e686cc4fd7b9c16b5fec88ae14179c9]) Switch ...