[rspec-devel] Will it be "response.should_have" or "response.body.should_have"?

James Hughes hughes.james at gmail.com
Tue Feb 13 17:30:22 EST 2007

On 2/9/07, David Chelimsky <dchelimsky at gmail.com> wrote:
> The next release (coming soon) will do everything assert_select does
> but with rspec syntax. Take a look at this:
> >http://blog.davidchelimsky.net/articles/2007/01/20/view-specs-are-about-to-get-a-whole-lot-easier

Thanks, David. assert_select supports using substitution values in
selectors, eg.:

  assert_select "ol>li#?", /item-\d+/

Is there a way to do this with should have_tag?


More information about the rspec-devel mailing list