leon/play-salat — pull request #27 by alexanderjarvis (2012-08-29 23:18:37+00:00)
Title: Fix tests

Currently get an error when writing integration tests with specs2. I think the trick is to not close the connection to mongodb.

An example stacktrace:
```
IllegalStateException: this Mongo has been closed (DBTCPConnector.java:207)
[error] com.mongodb.DBTCPConnector._checkClosed(DBTCPConnector.java:123)
[error] com.mongodb.DBTCPConnector.call(DBTCPConnector.java:207)
[error] com.mongodb.DBApiLayer$MyCollection.__find(DBApiLayer.java:313)
[error] com.mongodb.DBApiLayer$MyCollection.__find(DBApiLayer.java:298)
[error] com.mongodb.DBCollection.findOne(DBCollection.java:682)
[error] com.mongodb.DBCollection.findOne(DBCollection.java:661)
[error] com.mongodb.casbah.MongoCollectionBase$class.findOne(MongoCollection.scala:225)
[error] com.mongodb.casbah.MongoCollection.findOne(MongoCollection.scala:897)
[error] com.novus.salat.dao.SalatDAO.findOne(SalatDAO.scala:311)
[error] com.novus.salat.dao.ModelCompanion$class.findOne(ModelCompanion.scala:168)
[error] models.Test$.findOne(Test.scala:20)
```