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

more tests to ensure that default per_page does not affect other models

This commit is contained in:
Akira Matsuda 2011-02-12 01:00:01 +09:00
parent 31b213a760
commit 2a7514a53e

View file

@ -12,4 +12,13 @@ describe 'default per_page' do
its(:limit_value) { should == 1326 }
after { User.paginates_per nil }
end
describe "default per_page value's independency per model" do
context "when User's default per_page was changed" do
before { User.paginates_per 1326 }
subject { Book.page 0 }
its(:limit_value) { should == 25 }
after { User.paginates_per nil }
end
end
end