On Monday, April 27, 2015 at 12:34:14 PM UTC-4, Vebjorn Ljosa wrote:
>
> In one of my tests, I was trying to mock something
> (`clojure.tools.logging/warn`) that happened to be a macro. It had me
> puzzled for a while until I discovered that `with-redefs` resets the value
> of
In one of my tests, I was trying to mock something
(`clojure.tools.logging/warn`) that happened to be a macro. It had me
puzzled for a while until I discovered that `with-redefs` resets the value
of the vars after the body is executed, but does not reset the flag that
says that the var is a mac