On Mon, Nov 24, 2008 at 7:39 PM, Peter Jaros <[EMAIL PROTECTED]>wrote:
> On Mon, Nov 24, 2008 at 10:35 PM, Mark Wilden <[EMAIL PROTECTED]> wrote: > > On Mon, Nov 24, 2008 at 6:56 PM, Pau Cor <[EMAIL PROTECTED]> wrote: > >> > >> Pau Cor wrote: > >> > /\<p\>\s*\<b\>Token\:\<\/b\>\s*[a-f0-9]{40}\s*\<\/p\>/m > > I wouldn't use a Regexp to find this. Look into assert_select, or use > response.should have_tag (which is a wrapper for assert_select) if you > prefer to stay RSpec'y. > I don't see how you could use assert_select for this. I think you'd need an id somewhere to "anchor" the have_tag. But I'd be willing to learn. ///ark
_______________________________________________ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users