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:
parent
31b213a760
commit
2a7514a53e
1 changed files with 9 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue