Sha256: 2f55b2e33e2c46e528b55c90b96ffb1eb816c54eb993db07b501511fb5a1c537
Contents?: true
Size: 437 Bytes
Versions: 3
Compression:
Stored size: 437 Bytes
Contents
module MongoHelper def connection @connection ||= Mongo::Connection.new("localhost") end def database @database ||= connection.db("mongo_lock_tests") end def my_collection @my_collection ||= database.collection :locks end def other_collection @other_collection ||= database.collection :other_locks end def another_collection @another_collection ||= database.collection :another_locks end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
mongo-lock-1.1.4 | spec/support/mongo_helper.rb |
mongo-lock-1.1.3 | spec/support/mongo_helper.rb |
mongo-lock-1.1.1 | spec/support/mongo_helper.rb |