diff options
Diffstat (limited to 'test/IntegrationSpec.scala')
-rw-r--r-- | test/IntegrationSpec.scala | 24 |
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 @@ | |||
1 | import org.specs2.mutable._ | ||
2 | import org.specs2.runner._ | ||
3 | import org.junit.runner._ | ||
4 | |||
5 | import play.api.test._ | ||
6 | import 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]) | ||
13 | class 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 | } | ||