spec/config/config_spec.rb in kaminari-0.13.0 vs spec/config/config_spec.rb in kaminari-0.14.0

- old
+ new

@@ -15,9 +15,24 @@ Kaminari.configure {|c| c.default_per_page = 25} end end end + describe 'max_per_page' do + context 'by default' do + its(:max_per_page) { should == nil } + end + context 'configure via config block' do + before do + Kaminari.configure {|c| c.max_per_page = 100} + end + its(:max_per_page) { should == 100 } + after do + Kaminari.configure {|c| c.max_per_page = nil} + end + end + end + describe 'window' do context 'by default' do its(:window) { should == 4 } end end