mirror of
https://github.com/kaminari/kaminari.git
synced 2022-11-09 13:44:37 -05:00
a workaround to uniq order_values because some 3.1 versions duplicates order_values
see: https://github.com/rails/rails/issues/3923
This commit is contained in:
parent
eddde38cd5
commit
a697c3161c
1 changed files with 1 additions and 1 deletions
|
@ -46,7 +46,7 @@ describe Kaminari::ActiveRecordExtension do
|
||||||
|
|
||||||
describe 'ensure #order_values is preserved' do
|
describe 'ensure #order_values is preserved' do
|
||||||
subject { model_class.order('id').page 1 }
|
subject { model_class.order('id').page 1 }
|
||||||
its(:order_values) { should == ['id'] }
|
its('order_values.uniq') { should == ['id'] }
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue