1
0
Fork 0
mirror of https://github.com/kaminari/kaminari.git synced 2022-11-09 13:44:37 -05:00
kaminari--kaminari/spec/controllers/application_helper_spec.rb
2011-02-08 11:19:04 +09:00

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