Skip to content

Instantly share code, notes, and snippets.

@adericbourg
Created May 2, 2013 15:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adericbourg/5503055 to your computer and use it in GitHub Desktop.
Save adericbourg/5503055 to your computer and use it in GitHub Desktop.
Ceci est un test
"Application" should {
"send 404 on a bad request" in {
running(FakeApplication()) {
route(FakeRequest(GET, "/boum")) must beNone
}
}
"render the index page" in {
running(FakeApplication()) {
val home = route(FakeRequest(GET, "/")).get
status(home) must equalTo(OK)
contentType(home) must beSome.which(_ == "text/html")
contentAsString(home) must contain ("Paste & spread")
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment