<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi guys,<div><br class="webkit-block-placeholder"></div><div>I have a weird failing spec, for which I just cannot figure out the reason of failure. I'm now rewriting my controller specs based on the advice of David and Ashley, and I got stuck on this (see: <font style="font: 12.0px Helvetica">[rspec-users] specing rescue, ensure and else blocks of an Exception).</font></div><div><br class="webkit-block-placeholder"></div><div><a href="http://pastie.caboo.se/111221">http://pastie.caboo.se/111221</a></div><div><br class="webkit-block-placeholder"></div><div>I've tried everything, like stubbing out :update_attributes! , even tested it in real-life and it works like a charm: updates / creates new records nicely and everything else is working properly.</div><div><br></div><div>Any ideas would be greatly appreciated, have a nice day and thanks,</div><div>András</div><div><br></div><div>--</div><div><div><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><div>Tarsoly András</div><div><a href="mailto:tarsolya@gmail.com">tarsolya@gmail.com</a></div><div><br class="webkit-block-placeholder"></div><br class="Apple-interchange-newline"></span> </div><br></div></body></html>