Permalink
Browse files

Rename test helpers to be explicit in naming.

  • Loading branch information...
Brendan W. McAdams
Brendan W. McAdams committed May 11, 2012
1 parent 00354b9 commit 2e11d1600f26f1e6e11576d017f30db823bbdfd0
@@ -20,7 +20,7 @@ package scalatest
import org.scalatest.matchers.Matcher
import org.scalatest.matchers.MatchResult
trait DBObjectMatchers {
trait ScalaTestDBObjectMatchers {
protected def someField(map: Option[DBObject], k: String) = if (k.indexOf('.') < 0) {
map.getOrElse(MongoDBObject.empty).getAs[AnyRef](k)
@@ -33,7 +33,7 @@ trait CasbahMutableSpecification extends mutable.Specification with CasbahSpecif
trait CasbahSpecification extends Specification with CasbahSpecificationBase
trait CasbahSpecificationBase extends DBObjectMatchers with Logging {
trait CasbahSpecificationBase extends SpecsDBObjectMatchers with Logging {
implicit val sizedOptDBObj = new Sized[Option[DBObject]] {
def size(t: Option[DBObject]) = t.getOrElse(MongoDBObject.empty).size
}
@@ -51,9 +51,9 @@ trait CasbahSpecificationBase extends DBObjectMatchers with Logging {
}
}
trait DBObjectMatchers extends DBObjectBaseMatchers
trait SpecsDBObjectMatchers extends SpecsDBObjectBaseMatchers
trait DBObjectBaseMatchers extends Logging {
trait SpecsDBObjectBaseMatchers extends Logging {
protected def someField(map: Expectable[Option[DBObject]], k: String) = if (k.indexOf('.') < 0) {
map.value.getOrElse(MongoDBObject.empty).getAs[AnyRef](k)

0 comments on commit 2e11d16

Please sign in to comment.