From 6c8673f1da879ca293360da2b20f7af154de78cd Mon Sep 17 00:00:00 2001 From: Richard Imaoka Date: Sun, 28 Feb 2016 23:48:53 +0900 Subject: [PATCH] SimplifyTestKit doc async sample #18804 --- akka-docs/rst/scala/code/docs/testkit/PlainWordSpec.scala | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/akka-docs/rst/scala/code/docs/testkit/PlainWordSpec.scala b/akka-docs/rst/scala/code/docs/testkit/PlainWordSpec.scala index c331c8fedf..0ebfa554b1 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) }