#2661 - Changing ignoreMsg of TestProbe to take a PF from Any instead of AnyRef, to support primitives

This commit is contained in:
Viktor Klang 2012-10-29 23:07:06 +01:00
parent 3ee7dbcc45
commit d01ea366ce
2 changed files with 9 additions and 2 deletions

View file

@ -78,6 +78,13 @@ class TestProbeSpec extends AkkaSpec with DefaultTimeout {
expectMsgAllClassOf(5 seconds, classOf[Int]) must be(Seq(42))
}
"be able to ignore primitive types" in {
ignoreMsg { case 42 true }
testActor ! 42
testActor ! "pigdog"
expectMsg("pigdog")
}
}
}