Sha256: 64573d0da23fad6721e505b94dfe0dcd0dafc369eb33835c319ae8b68ce1ee29

Contents?: true

Size: 730 Bytes

Versions: 22

Compression:

Stored size: 730 Bytes

Contents

# Running Mongoid Tests

## Overview
### Quick Start
Spin up a MongoDB deployment against which to run the Mongoid specs. Mongoid specs support a variety of MongoDB topologies, but the simplest is a single MongoDB instance:

    # Launch mongod in one terminal
    mkdir /tmp/mdb
    mongod --dbpath /tmp/mdb

Run the test suite in a separate terminal:

    rake


## Caveats
### "Too many open files" error
On MacOS, you may encounter a "Too many open files" error on the MongoDB server when running the tests. If this happens, stop the server, run the command `ulimit -n 10000` in the same terminal session as the server, and restart the server. This will increase the number of files that can be opened. Then, re-run the tests.

Version data entries

22 entries across 22 versions & 2 rubygems

Version Path
mongoid-7.1.11 spec/README.md
mongoid-7.1.10 spec/README.md
mongoid-7.1.9 spec/README.md
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/mongoid-7.1.7/spec/README.md
mongoid-7.1.8 spec/README.md
mongoid-7.0.13 spec/README.md
mongoid-7.1.7 spec/README.md
mongoid-7.0.12 spec/README.md
mongoid-7.1.6 spec/README.md
mongoid-7.0.11 spec/README.md
mongoid-7.1.5 spec/README.md
mongoid-7.2.0.rc1 spec/README.md
mongoid-7.1.4 spec/README.md
mongoid-7.0.10 spec/README.md
mongoid-7.0.8 spec/README.md
mongoid-7.1.2 spec/README.md
mongoid-7.0.7 spec/README.md
mongoid-7.1.1 spec/README.md
mongoid-7.0.6 spec/README.md
mongoid-7.1.0 spec/README.md