mirror of
https://github.com/kaminari/kaminari.git
synced 2022-11-09 13:44:37 -05:00
13 lines
294 B
Ruby
13 lines
294 B
Ruby
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
|
|
|
|
describe UsersController, 'pagination' do
|
|
render_views
|
|
before do
|
|
1.upto(30) {|i| User.create! :name => "user#{'%02d' % i}" }
|
|
end
|
|
|
|
it 'renders' do
|
|
get :index
|
|
response.body.should =~ /pagination/
|
|
end
|
|
end
|