Merge pull request #19906 from richard-imaoka/testkit-fix-doc-async-constractor-richard-imaoka

simplifyTestKit doc async sample #18804
This commit is contained in:
Johan Andrén 2016-02-29 13:56:34 +01:00
commit cabd445a59

View file

@ -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)
}