The default rspec view specs don’t work so well for index pages if you have added Kaminari pagination.
The reason is the assigned variable in the controller is not an array, but is instead expected to respond to additional methods: current_page, num_pages, and limit_value.
Modifying the view spec like below appears to address the issue.
@books = [ Factory.build(:book), Factory.build(:book) ] @books.stub!(:current_page).and_return(1) @books.stub!(:num_pages).and_return(1) @books.stub!(:limit_value).and_return(1)