Skip to content

Commit

Permalink
Doing H2 db setup in Squeryl test.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dave Hrycyszyn committed Dec 7, 2013
1 parent cd787c1 commit ccc7314
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ package org.scalatra.example
import org.scalatra.example.data.DatabaseInit
import org.scalatra.test.scalatest._
import org.scalatest.{ FunSuite, BeforeAndAfter }
import org.scalatra.example.models.BlogDb
import org.h2.engine.Session

class ArticlesControllerTest extends ScalatraSuite with DatabaseInit with FunSuite with BeforeAndAfter {
addServlet(classOf[ArticlesController], "/*")
Expand All @@ -16,6 +18,10 @@ class ArticlesControllerTest extends ScalatraSuite with DatabaseInit with FunSui
}

test("simple get") {
get("/create-db") {
status should equal (302)
}

get("/") {
status should equal (200)
}
Expand Down

0 comments on commit ccc7314

Please sign in to comment.