1. Micha Hernandez van Leuffen
  2. scala-wercker

Commits

Pieter Joost van de Sande  committed dd10bbc

Move tests to test folder which matches convension

  • Participants
  • Parent commits 03268f5
  • Branches master

Comments (0)

Files changed (2)

File src/main/scala/Web.scala

View file
  • Ignore whitespace
     Future(response)
   }
 }
-
-class WebTest extends Specification with Mockito {
-  "Cities" should {
-    "have content" in {
-      var request = mock[HttpRequest]
-
-      var cities = new Cities
-      var f = cities.apply(request)
-
-      f onSuccess {
-        case response => response.getContent().readable() mustEqual true
-      }
-    }
-  }
-}

File src/test/scala/WebSpecs.scala

View file
  • Ignore whitespace
+import org.jboss.netty.handler.codec.http.{HttpRequest, HttpResponse}
+import org.specs._
+import org.specs.Specification
+import org.specs.mock.Mockito
+import org.mockito.Mockito._
+import scala.reflect.ClassManifest
+
+class WebSpec extends Specification with Mockito {
+  "Cities" should {
+    "have content" in {
+      var request = mock[HttpRequest]
+
+      var cities = new Cities
+      var f = cities.apply(request)
+
+      f onSuccess {
+        case response => response.getContent().readable() mustEqual true
+      }
+    }
+  }
+}