<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; ">I've just upgraded to rspec 0.6.4 and several specs were broken. All for the same reason. String.should_have_tag doesn't seem to be supported any longer.<DIV><BR class="khtml-block-placeholder"></DIV><DIV>It used to be possible to write assertions like:</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>response.body.should_have_tag :tag => "form"</DIV><DIV><DIV><DIV>or</DIV><DIV>"<html><body/></html>".should_have_tag :tag => "body"</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>But these fail with 0.6.4. The documentation still suggests this should work.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>I was able to solve the problem by adding the following to my spec files:</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>class String</DIV><DIV> include Spec::Expectations::TagExpectations</DIV><DIV>end</DIV><DIV><BR><DIV> <SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><DIV>Micah Martin</DIV><DIV>8th Light, Inc.</DIV><DIV>www.8thlight.com</DIV><DIV><BR class="khtml-block-placeholder"></DIV><BR class="Apple-interchange-newline"></SPAN> </DIV><BR></DIV></DIV></DIV></BODY></HTML>