spec/models/scopes_spec.rb in kaminari-0.12.3 vs spec/models/scopes_spec.rb in kaminari-0.12.4
- old
+ new
@@ -38,9 +38,14 @@
context 'page > max page' do
subject { User.page 5 }
it_should_behave_like 'blank page'
end
+
+ describe 'ensure #order_values is preserved' do
+ subject { User.order('id').page 1 }
+ its(:order_values) { should == ['id'] }
+ end
end
describe '#per' do
context 'page 1 per 5' do
subject { User.page(1).per(5) }