[rspec-users] have_tag + quantity - question

Mark Wilden mark at mwilden.com
Fri Mar 6 10:03:03 EST 2009


On Thu, Mar 5, 2009 at 5:40 AM, MAwiniarski <MAwiniarski at gmail.com> wrote:
> Greetings,
>
> Is there a way to check quantity of tags?
>
> Something like this:
>
> response.should have_tag('div').quantity(4)

Another great resource is
http://labnotes.org/svn/public/ruby/rails_plugins/assert_select/cheat/assert_select.html

///ark


More information about the rspec-users mailing list