I wrote an ActiveRecord extension to emulate a db cursor:
As you can see, the spec doesn’t really ensure that the records are
fetched in chunks. I’d like to mock the call to AR find and ensure that
it’s called with an incrementing offset.
PS If you’re interested, Jamis B. wrote a (mySQL specific) DB cursor: