Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Tests fails when updating to Mongoid 3.x #1

Open
theo-bittencourt opened this Issue · 2 comments

2 participants

@theo-bittencourt

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!

@vicentemundim

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.