Uploaded image for project: 'Mongoid'
  1. Mongoid
  2. MONGOID-1483

example spec for bug with criteria cloning

    • Type: Icon: Task Task
    • Resolution: Done
    • 2.4.0
    • Affects Version/s: None
    • Component/s: None
    • None

      I just ran into this bug in a project. Basically, if you change the sort
      option on a criteria, it updates the sort on the original criteria and
      the cloned copy, rather than just updating the sort on the cloned copy

      that is, if you do:
      names = Person.all.asc(:name)
      names_reverse = names.desc(:name)

      then both names and names_reverse will subsequently be sorted
      descending

      I wasn't quite sure where the right place to put this test was, so I'm
      just starting it here, and will move it around as I get guidance

            Assignee:
            Unassigned Unassigned
            Reporter:
            gerad Gerad Suyderhoud
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: