class MySpec(_system: ActorSystem) extends TestKit(_system) with ImplicitSender with WordSpec with MustMatchers with BeforeAndAfterAll { ...
Mike
Michael Slinn
unread,
May 14, 2012, 7:42:16 PM5/14/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to scalate...@googlegroups.com
Duh, except for this line:
def this() = this(ActorSystem("MySpec"))
I guess I was in the sun too long while salmon fishing yesterday.
Mike
Derek Wyatt
unread,
May 14, 2012, 7:45:17 PM5/14/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to scalate...@googlegroups.com
There's an alternative to this as well, that I discovered today. You can push the TestKit (and thus the ActorSystem) down to the tests, as opposed to at the suite. This isn't always useful but it can be, depending on your situation.