aboutsummaryrefslogtreecommitdiff
path: root/test/IntegrationSpec.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/IntegrationSpec.scala')
-rw-r--r--test/IntegrationSpec.scala24
1 files changed, 24 insertions, 0 deletions
diff --git a/test/IntegrationSpec.scala b/test/IntegrationSpec.scala
new file mode 100644
index 0000000..652edde
--- /dev/null
+++ b/test/IntegrationSpec.scala
@@ -0,0 +1,24 @@
1import org.specs2.mutable._
2import org.specs2.runner._
3import org.junit.runner._
4
5import play.api.test._
6import play.api.test.Helpers._
7
8/**
9 * add your integration spec here.
10 * An integration test will fire up a whole play application in a real (or headless) browser
11 */
12@RunWith(classOf[JUnitRunner])
13class IntegrationSpec extends Specification {
14
15 "Application" should {
16
17 "work from within a browser" in new WithBrowser {
18
19 browser.goTo("http://localhost:" + port)
20
21 browser.pageSource must contain("Your new application is ready.")
22 }
23 }
24}