Skip to content

Commit

Permalink
SimplifyTestKit doc async sample akka#18804
Browse files Browse the repository at this point in the history
  • Loading branch information
richardimaoka committed Feb 28, 2016
1 parent 19d8da6 commit 6c8673f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions akka-docs/rst/scala/code/docs/testkit/PlainWordSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 6c8673f

Please sign in to comment.