Skip to content
Browse files

Minor test clean ups

  • Loading branch information...
1 parent 0ec3615 commit fa94be47a7328aae290631b0bee7f1a57fc55066 @rozza rozza committed
View
4 casbah-commons/src/test/scala/test/Specs2Helpers.scala
@@ -25,10 +25,6 @@ import org.specs2.matcher.Matchers._
import com.mongodb.casbah.commons.Logging
import com.mongodb.casbah.commons.Imports._
-object `package` {
-
-}
-
trait CasbahMutableSpecification extends mutable.Specification with CasbahSpecificationBase
trait CasbahSpecification extends Specification with CasbahSpecificationBase
View
15 casbah-gridfs/src/test/scala/GridFSSpec.scala
@@ -22,15 +22,15 @@
package com.mongodb.casbah.test.gridfs
+import java.security.MessageDigest
+import java.io._
+
+import com.github.nscala_time.time.Imports._
+
import com.mongodb.casbah.Imports._
import com.mongodb.casbah.gridfs.Imports._
import com.mongodb.casbah.commons.Logging
-
-import com.github.nscala_time.time.Imports._
-
-import java.security.MessageDigest
-import java.io._
import com.mongodb.casbah.commons.conversions.scala._
@@ -93,8 +93,6 @@ class GridFSSpec extends com.mongodb.casbah.commons.test.CasbahMutableSpecificat
uploadDate must beAnInstanceOf[java.util.Date]
}
-
-
"Correctly catch the non-existence of a file and fail gracefully" in {
gridfs.findOne("powered_by_mongoFOOBAR235254252.png") must beNone
}
@@ -140,8 +138,6 @@ class GridFSSpec extends com.mongodb.casbah.commons.test.CasbahMutableSpecificat
uploadDate must beAnInstanceOf[DateTime]
}
-
-
"Correctly catch the non-existence of a file and fail gracefully" in {
gridfs.findOne("powered_by_mongoFOOBAR235254252.png") must beNone
}
@@ -209,3 +205,4 @@ class GridFSSpec extends com.mongodb.casbah.commons.test.CasbahMutableSpecificat
}
+

0 comments on commit fa94be4

Please sign in to comment.
Something went wrong with that request. Please try again.