Skip to content

Tests fails when updating to Mongoid 3.x #1

@theo-bittencourt

Description

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions