[rspec-users] Just trying out cucumber

Mark Wilden mark at mwilden.com
Mon Nov 24 22:56:43 EST 2008

On Mon, Nov 24, 2008 at 7:39 PM, Peter Jaros <peter.a.jaros at gmail.com>wrote:

> On Mon, Nov 24, 2008 at 10:35 PM, Mark Wilden <mark at mwilden.com> wrote:
> > On Mon, Nov 24, 2008 at 6:56 PM, Pau Cor <lists at ruby-forum.com> 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.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20081124/b252bf6c/attachment.html>

More information about the rspec-users mailing list