Topic: Using RSpec for controllers with will_paginate
I have read about the troubles with mock objects, but I am experimenting and learning with them.
Maybe I, like ryanb, give up and come back to use fixtures.
I see the problems with mock objects.
But for now, I will try a little more.
One of the problems I have found is with the plugin will_paginate,
How will be the items_controller_spec.rb when I use will pagine for the index action.
How can I setup the mock for the @items collection.
I think it is becoming too complicated.
Can somebody help with this?