On Tue, Aug 7, 2012 at 1:47 PM, Laurent PETIT <laurent.pe...@gmail.com> wrote: > I can see that there's a thorough analysis of the framework in a blog > series, but which may or may not be up to date. At least, it seems a little > bit "dated" (in software duration time scales), but maybe it's still > accurate. Maybe updates on the blogs may help the newcomer understand if > it's worth reading now in August 2012 ?
I found those blog posts very helpful when I was learning Expectations back in March and don't remember running into anything specific that was out of date. One thing I did trip over is that both expectations and expectations.scenarios define several of the same names so you can't mix bare (expect ...) calls and (scenario (expect ...)) in the same test file. The other thing I run into quite a bit is wanting a negative expectation, e.g., expecting an expression not to throw a particular exception (it can throw other exceptions and pass or it can return a result), expecting a non-nil value... For the latter you can (expect not (nil? expr)) or (expect (comp not nil?) expr) but expecting not to throw a specific exception is a bit trickier... -- Sean A Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ World Singles, LLC. -- http://worldsingles.com/ "Perfection is the enemy of the good." -- Gustave Flaubert, French realist novelist (1821-1880) -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en