Sha256: 2622149e40bce90775cefbf164ec85690f9aa6fe5b326d6ec390a5d9bccc3195

Contents?: true

Size: 1.37 KB

Versions: 26

Compression:

Stored size: 1.37 KB

Contents

data:
    - {_id: 1, x: 11}
    - {_id: 2, x: 22}
    - {_id: 3, x: 33}

tests:
    -
        description: "FindOneAndDelete when many documents match"
        operation:
            name: findOneAndDelete
            arguments:
                filter: 
                    _id: {$gt: 1}
                projection: {x: 1, _id: 0}
                sort: {x: 1}

        outcome:
            result: {x: 22}
            collection:
                data:
                    - {_id: 1, x: 11}
                    - {_id: 3, x: 33}
    -
        description: "FindOneAndDelete when one document matches"
        operation:
            name: findOneAndDelete
            arguments:
                filter: {_id: 2}
                projection: {x: 1, _id: 0}
                sort: {x: 1}

        outcome:
            result: {x: 22}
            collection:
                data:
                    - {_id: 1, x: 11}
                    - {_id: 3, x: 33}
    -
        description: "FindOneAndDelete when no documents match"
        operation:
            name: findOneAndDelete
            arguments:
                filter: {_id: 4}
                projection: {x: 1, _id: 0}
                sort: {x: 1}

        outcome:
            result: null
            collection:
                data:
                    - {_id: 1, x: 11}
                    - {_id: 2, x: 22}
                    - {_id: 3, x: 33}
  

Version data entries

26 entries across 25 versions & 3 rubygems

Version Path
mongo-2.3.1 spec/support/crud_tests/write/findOneAndDelete.yml
mongo-2.3.0 spec/support/crud_tests/write/findOneAndDelete.yml
mongo-2.2.7 spec/support/crud_tests/write/findOneAndDelete.yml
mongo-2.2.6 spec/support/crud_tests/write/findOneAndDelete.yml
ish_lib_manager-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/mongo-2.2.5/spec/support/crud_tests/write/findOneAndDelete.yml
mongo-2.2.5 spec/support/crud_tests/write/findOneAndDelete.yml
mongo-2.2.4 spec/support/crud_tests/write/findOneAndDelete.yml
mongo-2.2.3 spec/support/crud_tests/write/findOneAndDelete.yml
mongo-2.2.2 spec/support/crud_tests/write/findOneAndDelete.yml
tdiary-4.2.1 vendor/bundle/ruby/2.3.0/gems/mongo-2.2.1/spec/support/crud_tests/write/findOneAndDelete.yml
tdiary-4.2.1 vendor/bundle/ruby/2.2.0/gems/mongo-2.2.1/spec/support/crud_tests/write/findOneAndDelete.yml
mongo-2.2.1 spec/support/crud_tests/write/findOneAndDelete.yml
mongo-2.2.0 spec/support/crud_tests/write/findOneAndDelete.yml
mongo-2.2.0.rc0 spec/support/crud_tests/write/findOneAndDelete.yml
mongo-2.1.2 spec/support/crud_tests/write/findOneAndDelete.yml
mongo-2.1.1 spec/support/crud_tests/write/findOneAndDelete.yml
mongo-2.1.0 spec/support/crud_tests/write/findOneAndDelete.yml
mongo-2.1.0.rc0 spec/support/crud_tests/write/findOneAndDelete.yml
mongo-2.1.0.beta spec/support/crud_tests/write/findOneAndDelete.yml
mongo-2.0.6 spec/support/crud_tests/write/findOneAndDelete.yml