On Thu, Mar 5, 2009 at 7:40 AM, MAwiniarski <[email protected]> wrote:
> Greetings,
>
> Is there a way to check quantity of tags?
>
> Something like this:
>
> response.should have_tag('div').quantity(4)
response.should have_tag('div', 4)
Check the assert_select docs (have_tag wraps it) at
http://api.rubyonrails.org/classes/ActionController/Assertions/SelectorAssertions.html#M000547
Cheers,
David
>
> Thanks.
> _______________________________________________
> rspec-users mailing list
> [email protected]
> http://rubyforge.org/mailman/listinfo/rspec-users
>
_______________________________________________
rspec-users mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/rspec-users