score:1

Accepted answer

i'm using specs2 and i do tests with some different traits. using your classes my tests look like this:

class eventsservicespectest extends specificationwithjunit with specs2routetest with eventsservice {

  "events service" should {

    "list all events" in {      
      get("events") ~> eventsroute ~> check {
        status === statuscodes.ok
      }
    }
  }
}

the only other thing i can think is that your path might need to be "/events" instead of "events"


Related Query

More Query from same tag