You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
564 B
24 lines
564 B
import org.specs2.mutable._
|
|
import org.specs2.runner._
|
|
import org.junit.runner._
|
|
|
|
import play.api.test._
|
|
import play.api.test.Helpers._
|
|
|
|
/**
|
|
* add your integration spec here.
|
|
* An integration test will fire up a whole play application in a real (or headless) browser
|
|
*/
|
|
@RunWith(classOf[JUnitRunner])
|
|
class IntegrationSpec extends Specification {
|
|
|
|
"Application" should {
|
|
|
|
"work from within a browser" in new WithBrowser {
|
|
|
|
browser.goTo("http://localhost:" + port)
|
|
|
|
browser.pageSource must contain("Your new application is ready.")
|
|
}
|
|
}
|
|
}
|