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

Expand $exists test coverage in embedded matchers

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.2.0.rc1
    • Affects Version/s: None
    • Component/s: Query
    • None

      $exists is a special case in the matcher implementation. As such we should have a variety of test cases to ensure it works correctly.

      empty array
      true & false
      empty hash

      The following cases have been added previously:

      null (https://jira.mongodb.org/browse/MONGOID-4788)
      array (positional) element traversal
      hash traversal

            Assignee:
            oleg.pudeyev@mongodb.com Oleg Pudeyev (Inactive)
            Reporter:
            oleg.pudeyev@mongodb.com Oleg Pudeyev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: