search for: assert_xml_select

Displaying 2 results from an estimated 2 matches for "assert_xml_select".

2007 Oct 05
4
have_xml_tag
Hi Was just using have_tag on an xml response and found the problem outlined and resolved here http://weblog.jamisbuck.org/2007/1/4/assert_xml_select Just wondered if there is any support in rspec? Cheers Shane Shane Mingins ELC Technologies (TM) PO Box 247 Santa Barbara, CA 93102 Phone: +64 4 568 6684 Mobile: +64 21 435 586 Email: smingins at elctech.com AIM: ShaneMingins Skype: shane.mingins (866) 863-7365 Tel - Santa Barbara Office...
2007 Jun 27
1
rspec_on_rails: assert_select wrapper doesn''t play nice with XML
...le" text around close: "brands/2154/feed.rss</link>\n <descrip" The XML in the view is actually well formed, the problem is that the HTML::Document class used is not instantiated in XML mode when an XML response body is present. See http://weblog.jamisbuck.org/2007/1/4/assert_xml_select for more info. I''ve had a go at patching this and ''it works for me'', but I''ve not spent much time getting to know the internals of either rspec or rspec_on_rails, so it may well be the wrong solution. Cheers Ian -------------- next part -------------- An HTML a...