Great! This helps me a lot and if the answer for the next question is
no it's probably the only way.
If we have that kind of construction:
"MSG" should{
"MSG1" >> { sth1 mustEqual sth2 }
"MSG2" >> { sth3 mustEqual sth4 }
"MSG3" >> { sth5 mustEqual sth6 }
"MSG4" >> { sth7 mustEqual sth8 }
}
If failure occurs in any of these sections, for example in last one is
there way the message failure will be result of concatenation(putting
togheter) of "MSG" + "MSG4" because if I use aka method I should write
it like this
"MSG" should{
"MSG1" >> { sth1 aka "MSG MSG1" mustEqual sth2 }
"MSG2" >> { sth3 aka "MSG MSG2" mustEqual sth4 }
"MSG3" >> { sth5 aka "MSG MSG3" mustEqual sth6 }
"MSG4" >> { sth7 aka "MSG MSG4" mustEqual sth8 }
}
Thanks again for your help!
Robert
On 8 Wrz, 01:02, etorreborre <
etorrebo...@gmail.com> wrote:
> Hi Robert,
>
> Some expectations are actually hard to interpret when they fail:
> "request.isAccepted must beTrue" for example.
>
> What you need here is the "aka" operator<
http://code.google.com/p/specs/wiki/MatchersGuide#Precise_failures>to add a description to the failing expectation: