Commit 3e139947 authored by Mathieu leclaire's avatar Mathieu leclaire

clean up

parent 590683f4
...@@ -8,6 +8,7 @@ class ScalatraBootstrap extends LifeCycle { ...@@ -8,6 +8,7 @@ class ScalatraBootstrap extends LifeCycle {
override def init(context: ServletContext) { override def init(context: ServletContext) {
//val serv = new MyScalatraServlet //val serv = new MyScalatraServlet
// pluginROutes.foreach{serv.addRoute} // pluginROutes.foreach{serv.addRoute}
context.mount(new Servlet, "/*") context.mount(new Servlet, "/*")
} }
} }
package fr.iscpif.app
import org.scalatra.test.specs2._
// For more on Specs2, see http://etorreborre.github.com/specs2/guide/org.specs2.guide.QuickStart.html
class MyScalatraServletSpec extends ScalatraSpec { def is =
"GET / on MyScalatraServlet" ^
"should return status 200" ! root200^
end
addServlet(classOf[MyScalatraServlet], "/*")
def root200 = get("/") {
status must_== 200
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment