vicentemundim/mongoid_query_string_interface

Tests fails when updating to Mongoid 3.x

Opened this issue · 2 comments

I needed to change the below lines to make almost all examples pass:

https://github.com/vicentemundim/mongoid_query_string_interface/blob/master/spec/mongoid/query_string_interface_spec.rb#L21

def self.default_sorting_options
  [:created_at.desc, :updated_at.asc]
end

to

def self.default_sorting_options
  ['created_at.desc', 'updated_at.asc']
end

Examples using queries with dates are failing too:
https://github.com/vicentemundim/mongoid_query_string_interface/blob/master/spec/mongoid/query_string_interface_spec.rb#L213

Thanks in advance!

I've just pushed some changes that made most of the specs pass, there are still 2 specs failing, I'll check them later.