<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
Hello Denis,<div><br class="webkit-block-placeholder"></div><div>I dipped into your BehaviorMockup package and it seems really powerful. I like the block notation so that the expected behavior is stated after the exercised code. This way the tests can be more uniform (Four-Phase Test) and clearer.</div><div><br class="webkit-block-placeholder"></div><div>One thing I didn't found out is how to have the mocks ignore certain message calls.</div><div>E.g. I want this to pass:</div><div>[:mock | mock m1; m2] should lenient satisfy: [:mock | mock m1]</div><div><br></div><div>I tried it the 'lenient way' as above but I get a SpecFailed: WrongMessageSelector. How can one do this?</div><div><br class="webkit-block-placeholder"></div><div>Best regards,</div><div>Robert</div><div><br class="webkit-block-placeholder"></div><div><div><div>Am 20.08.2007 um 11:32 schrieb Denis Kudriashov:</div><br class="Apple-interchange-newline"><blockquote type="cite">I realize new smalltalk mock objects framework named BehaviorMockup with SSpec functionality.<br> There is Squeak (<a href="http://www.squeaksource.com/BehaviorMockup.html">http://www.squeaksource.com/BehaviorMockup.html</a>) and VW versions (cincom public repository)<br> <br> Simplest language for behavior specfications:<br><p>[:mock | mock someMessage] should strictly satisfy: [:mock | mock someMessage willReturn: 'some']</p><p>or</p><p>[:mock | mock someMessage] should lenient satisfy: [:mock | mock someMessage willReturn: 'some']</p><p>SSpec functionality:</p> <ul><li>5 should equals: 6 </li><li>and ...</li></ul> For more detailes see Wiki on SqueakSource and many acceptance tests in package<br> <br> Best regards,<br> Denis<br><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div> </blockquote></div><br></div></body></html>