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 (866) 893-1902 Fax - Santa Barbara Office +44 020 7504 1346 Tel - London Office +44 020 7504 1347 Fax - London Office http://www.elctech.com -------------------------------------------------------------------- Privacy and Confidentiality Notice: The information contained in this electronic mail message is intended for the named recipient(s) only. It may contain privileged and confidential information. If you are not an intended recipient, you must not copy, forward, distribute or take any action in reliance on it. If you have received this electronic mail message in error, please notify the sender immediately. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/rspec-users/attachments/20071005/6615a134/attachment-0001.html
On 10/5/07, Shane Mingins <smingins at elctech.com> wrote:> > 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? >Really? I ran into that with Test::Unit/assert_select, but I was surprised and pleased to discover that have_tag and with_tag didn''t seem to care between HTML and XML. -- Geoffrey Wiseman -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/rspec-users/attachments/20071005/00c78dd1/attachment.html
Prob should have mentioned that I am using 1.05 but have_tag just wraps assert_select as far as I am aware. On 6/10/2007, at 12:49 PM, Geoffrey Wiseman wrote:> On 10/5/07, Shane Mingins <smingins at elctech.com> wrote: > 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? > > Really? > > I ran into that with Test::Unit/assert_select, but I was surprised > and pleased to discover that have_tag and with_tag didn''t seem to > care between HTML and XML. > > -- > Geoffrey Wiseman > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-usersShane 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 (866) 893-1902 Fax - Santa Barbara Office +44 020 7504 1346 Tel - London Office +44 020 7504 1347 Fax - London Office http://www.elctech.com -------------------------------------------------------------------- Privacy and Confidentiality Notice: The information contained in this electronic mail message is intended for the named recipient(s) only. It may contain privileged and confidential information. If you are not an intended recipient, you must not copy, forward, distribute or take any action in reliance on it. If you have received this electronic mail message in error, please notify the sender immediately. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/rspec-users/attachments/20071006/0bbac38e/attachment-0001.html
On 10/5/07, Shane Mingins <smingins at elctech.com> wrote:> > Prob should have mentioned that I am using 1.05 but have_tag just wraps > assert_select as far as I am aware. >I know nothing about the whys and wherefores, and haven''t attempted to look at the code in this case, but on 1.0.8, have_tag and with_tag seem to work fine on XML for me, so ... if upgrading is an option, might be worth a shot. - Geoffrey -- Geoffrey Wiseman -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/rspec-users/attachments/20071005/74c6488f/attachment.html
I didn''t see any specific changes for have_tag though it could have just not been listed. I''d push for 1.0.9 because it has story runner which by the way is amazing On 10/5/07, Geoffrey Wiseman <geoffrey.wiseman at gmail.com> wrote:> > On 10/5/07, Shane Mingins <smingins at elctech.com> wrote: > > > > Prob should have mentioned that I am using 1.05 but have_tag just wraps > > assert_select as far as I am aware. > > > > I know nothing about the whys and wherefores, and haven''t attempted to > look at the code in this case, but on 1.0.8, have_tag and with_tag seem to > work fine on XML for me, so ... if upgrading is an option, might be worth a > shot. > > - Geoffrey > -- > Geoffrey Wiseman > > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >-- Monsterbox Productions putting small businesses on-line 1319 Victoria Avenue East Thunder Bay, Ontario P7C 1C3 Canada Andrew WC Brown web-developer and owner andrew at monsterboxpro.com P: 807-626-9009 F: 807-624-2705 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/rspec-users/attachments/20071005/45c210c7/attachment.html