Re: Rebinding a var in a Lazytest test -- beginner

2010-12-15 Thread fuchsd
Hi Stuart, Ahh, got it. do-it/expect worked perfectly. Thanks! Dan On Dec 14, 12:37 pm, Stuart Sierra wrote: > Both `describe` and `it` create functions.  That is, they expand out > to `(fn [] ...)`.  Wrapping `binding` around the creation of a fn has > no effect. > > For finer control over wh

Re: Rebinding a var in a Lazytest test -- beginner

2010-12-14 Thread Stuart Sierra
Both `describe` and `it` create functions. That is, they expand out to `(fn [] ...)`. Wrapping `binding` around the creation of a fn has no effect. For finer control over where the fn gets created and how failures get reported, you can use `do-it` and `expect`. (describe ... (do-it ... (b

Rebinding a var in a Lazytest test -- beginner

2010-12-14 Thread fuchsd
Howdy, I asked this on #clojure and posted a question on Stackoverflow (http://stackoverflow.com/questions/4424220/how-do-i-rebind-a-var-in-a- lazytest-describe-test), but no dice. I'm assuming that it's because this is so simple and I'm doing it so incorrectly that nobody can even begin to formu