title: Testing Pagination Features with Cucumber
body: <p>I am learning and liking cucumber, and now have a feature I'm not sure of the best way to proceed on via BDD: pagination. I have scenarios (in my mind) where there are zero pages, one page, several pages, etc. and where I want to make sure certain records are on certain pages, make sure the "next" button is not a link when on the last page, etc.</p>
  
  <p>I will be using will_paginate, so essentially I want to figure out how to BDD its features for a specific list of items, for example, books.</p>
  
  <p>I'm sure I can muddle through it but I feel this should be common and would like to see what others have done. Can anyone recommend an article, or point me to some example code, or even take a shot at an example themselves?</p>