Demo app using the Scala Play framework
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.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

24 lines
564 B

11 years ago
  1. import org.specs2.mutable._
  2. import org.specs2.runner._
  3. import org.junit.runner._
  4. import play.api.test._
  5. import play.api.test.Helpers._
  6. /**
  7. * add your integration spec here.
  8. * An integration test will fire up a whole play application in a real (or headless) browser
  9. */
  10. @RunWith(classOf[JUnitRunner])
  11. class IntegrationSpec extends Specification {
  12. "Application" should {
  13. "work from within a browser" in new WithBrowser {
  14. browser.goTo("http://localhost:" + port)
  15. browser.pageSource must contain("Your new application is ready.")
  16. }
  17. }
  18. }