diff --git a/akka-docs/rst/scala/code/docs/testkit/PlainWordSpec.scala b/akka-docs/rst/scala/code/docs/testkit/PlainWordSpec.scala index c331c8fedf0..0ebfa554b16 100644 --- a/akka-docs/rst/scala/code/docs/testkit/PlainWordSpec.scala +++ b/akka-docs/rst/scala/code/docs/testkit/PlainWordSpec.scala @@ -13,12 +13,10 @@ import org.scalatest.Matchers import org.scalatest.BeforeAndAfterAll //#implicit-sender -class MySpec(_system: ActorSystem) extends TestKit(_system) with ImplicitSender +class MySpec() extends TestKit(ActorSystem("MySpec")) with ImplicitSender with WordSpecLike with Matchers with BeforeAndAfterAll { //#implicit-sender - def this() = this(ActorSystem("MySpec")) - override def afterAll { TestKit.shutdownActorSystem(system) }