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"
Source: stackoverflow.com
Related Query
- Scalatest and SprayIO fails
- What’s the difference between ScalaTest and Scala Specs unit test frameworks?
- java.lang.IncompatibleClassChangeError: Implementing class with ScalaCheck and ScalaTest
- How to run ScalaTest with Guice DI and Slick?
- ScalaTest - check for "almost equal" for floats and objects containing floats
- Scalatest and Spark giving "java.io.NotSerializableException: org.scalatest.Assertions$AssertionsHelper"
- Scalatest Asynchronous Test Suites vs Eventually and WhenReady (org.scalatest.concurrent)
- Hamcrest and ScalaTest
- ScalaTest and Maven: getting started
- Group ScalaTest tests and run in order
- Async before and after for creating and dropping scala slick tables in scalatest
- How to only show stdout of a scalatest test if it fails
- How to assert that mocked method is never called using ScalaTest and ScalaMock?
- ScalaTest assert and matchers
- Spark job restarted after showing all jobs completed and then fails (TimeoutException: Futures timed out after [300 seconds])
- How to implement a ScalaTest FunSuite to avoid boilerplate Spark code and import implicits
- Gradle, IntelliJ and ScalaTest plugin: suddenly broken
- Scaladoc fails to generate links for inner classes in method and class signatures
- How to get ScalaTest correctly reporting tests results when using scalacheck with Propspec and PropertyCheck?
- Using specs2 and FakeApplication() to test database fails evolution inserts
- Ambiguous implicit conversions causing compile failure in Scalatest and Argonaut.io
- how to make scalatest work with spraytestkit and HttpServiceActor
- Scalatest building and running in Intellij, but not building the project when run on the command line with maven
- Why does sbt give multiple dependencies warning with Akka and ScalaTest dependencies?
- Scalatest and scalamock - dependency trouble involving SuiteMixin
- Gatling load tests and ScalaTest unit tests in same Play project
- Building a ZIO and http4s app, works with sbt, fails with Bazel: missing an implicit
- Mocking database with Slick in ScalaTest + Mockito and testing UPDATE
- Scala For-Comprehension: How to Recover and Continue If a Future Fails
- Where did evaluating and produce go in ScalaTest 3?
More Query from same tag
- Any convention for "given an empty list return an empty list" when matching patterns?
- How to do a page redirect in lift
- Error on a count query on mongodb using reactivemongo
- Search a folder with specific name in Scala
- Cannot connect to spark cluster on intellij but spark-submit can
- Overloaded method filter
- Scala error: "forward reference extends over definition of value" when code appears in a function
- Lexicographic Permutations
- Existential type or type parameter bound failure
- Comparing Int to Double - No Warning?
- scala type signature to allow numeric ops on members
- Anatomy of Menu
- Why does the task size keep growing when using updateStateByKey?
- How to run Scala app as system user with sbt
- Building a list of "incremental sums"
- Is Shapeless' type inequality buggy?
- ReactiveMongo connect with MongoConnectionOptions
- Convert spark dataframe map column to json
- Parboiled - how to parse a real number?
- Execute series of Stored procedures in Databricks using Scala
- Why are values defined only once while using underscore in Scala
- Question about Cake Pattern
- Scala code prettification - loop 2D array with if statement
- Collections in scala, how to get elements in map
- LDAP for authentication and authorization in Playframework 2.0
- Scala script to copy files
- Scala parsing nested json with Json4s
- load file to memory by block of 256kb
- Action is not redirecting to another Action in play-framework
- How to put annotation on getter or setter automatically generated by Groovy compiler?