I am using capybara along with cucumber on a Rails 2.3.9 project.
I have users index page and I have two records there. Using capybara how do I assert that there are only two records in the page.
HTML structure is like this
<div class='records'>
<li>record 1<li>
<li>record 2 </li>
</div>