As part of review of the proposed PR for https://jira.mongodb.org/browse/MONGOID-4755 I wrote an integration test to verify all contexts behave the same.
While writing this test I noticed that None context doesn't implement find_first and one, which are trivial to add.
- is depended on by
-
MONGOID-4755 Mongoid::Contextual::Aggregable::Mongo#sum does not return nil as expected for Mongoid::Document#none
- Closed
-
MONGOID-5239 Add Feature Flag: Mongoid::Contextual::Aggregable::Mongo#sum does not return nil as expected for Mongoid::Document#none
- Closed
- is related to
-
MONGOID-5148 Implement map(field) for Memory and None contexts
- Closed
- links to