[rspec-devel] Will it be "response.should_have" or "response.body.should_have"?
dchelimsky at gmail.com
Tue Feb 13 19:34:06 EST 2007
On 2/13/07, James Hughes <hughes.james at gmail.com> wrote:
> 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?
response.should have_tag("ol>li#?", /item-\d+/)
It's really just a wrapper of everything in assert_select w/ some more
rspec-ish syntax. This includes assert_select_rjs (should have_rjs)
and assert_select_email (should be_email).
> rspec-devel mailing list
> rspec-devel at rubyforge.org
More information about the rspec-devel