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 want an assertion then
use
a should ===(b)
Regards,
Roland
Sent from my iPhone
On 10 Mar 2015, at 08:12, Avi Levi 123...@gmail.com wrote:
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 === StatusCodes.OK but also with this
expectMsgType[HttpResponse].status === StatusCodes.BadRequest pass the test.
I have noticed that the triple equality accepts all status codes, however
using Should works as expected
expectMsgType[HttpResponse].status should equal(StatusCodes.OK)
did I do something wrong or is a bug ?
best
Avi
--
Read the docs: http://akka.io/docs/
Check the FAQ:
http://doc.akka.io/docs/akka/current/additional/faq.html
Search the archives: https://groups.google.com/group/akka-user
---
You received this message because you are subscribed to the Google Groups
Akka User List group.
To unsubscribe from this group and stop receiving emails from it, send an
email to akka-user+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.
--
Read the docs: http://akka.io/docs/
Check the FAQ:
http://doc.akka.io/docs/akka/current/additional/faq.html
Search the archives: https://groups.google.com/group/akka-user
---
You received this message because you are subscribed to the Google Groups Akka
User List group.
To unsubscribe from this group and stop receiving emails from it, send an email
to akka-user+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.