Created
May 2, 2013 15:34
-
-
Save adericbourg/5503055 to your computer and use it in GitHub Desktop.
Ceci est un test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"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