1
0
Fork 0
mirror of https://github.com/kaminari/kaminari.git synced 2022-11-09 13:44:37 -05:00

Add failing tests with padding

This commit is contained in:
negipo 2013-04-14 21:22:19 +09:00
parent 5f62aa5966
commit 15ea8867c9

View file

@ -71,6 +71,12 @@ if defined? ActiveRecord
it { should have(5).users }
its('first.name') { should == 'user002' }
end
context 'page 19 per 5 padding 5' do
subject { model_class.page(19).per(5).padding(5) }
its(:current_page) { should == 19 }
its(:total_pages) { should == 19 }
end
end
describe '#total_pages' do