[akka-user] Testing actors expectMsgType[HttpResponse] with matchers gives different results when using "should equal" or triple equal sign '==='

2015-03-10 Thread Avi Levi
Hi, I am not sure where is the right place to put this , but after banging my head against the wall trying to figure out why my tests are not working is expected, I thought it's worth sharing. I have noticed that my test pass with this assertion expectMsgType[HttpResponse].status === StatusCode

Re: [akka-user] Testing actors expectMsgType[HttpResponse] with matchers gives different results when using "should equal" or triple equal sign '==='

2015-03-11 Thread Roland Kuhn
Hi Avi, The authoritative answer should come from the library that gave you the === operator, but if my guess is correct that this is ScalaTest then what you are seeing is easily explained by the fact that === is just a more type-safe version of ==, meaning that it returns a boolean. If you wan