spec/support/mongo_helper.rb in mongo-lock-1.1.0 vs spec/support/mongo_helper.rb in mongo-lock-1.1.1
- old
+ new
@@ -6,14 +6,18 @@
def database
@database ||= connection.db("mongo_lock_tests")
end
- def collection
- @collection ||= database.collection :locks
+ 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
\ No newline at end of file