1
0
Fork 0
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:
Akira Matsuda 2011-12-10 07:54:36 +09:00
parent eddde38cd5
commit a697c3161c

View file

@ -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