Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tests fails when updating to Mongoid 3.x #1

Open
theo-bittencourt opened this issue Jun 25, 2013 · 2 comments
Open

Tests fails when updating to Mongoid 3.x #1

theo-bittencourt opened this issue Jun 25, 2013 · 2 comments

Comments

@theo-bittencourt
Copy link

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
Copy link
Owner

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

@theo-bittencourt
Copy link
Author

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants