Sha256: 7779e4bd8e25b95f11cda48bf7a617276a036193394cd5f1ee5872843546ab74
Contents?: true
Size: 336 Bytes
Versions: 2
Compression:
Stored size: 336 Bytes
Contents
module MongoHelper def connection @connection ||= Mongo::Connection.new("localhost") end def database @database ||= connection.db("mongo_lock_tests") end def collection @collection ||= database.collection :locks end def other_collection @other_collection ||= database.collection :other_locks end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mongo-lock-1.1.0 | spec/support/mongo_helper.rb |
mongo-lock-1.0.0 | spec/support/mongo_helper.rb |