On Wed, Dec 1, 2010 at 8:29 AM, Laurent PETIT <laurent.pe...@gmail.com> wrote: > If so, then it may be sufficient to leverage the possibility, in your > testing "framework" (clojure.test ? anything else ...) to redefine the > functions of the backend before the tests run. I'm pretty sure there are > already such features allowing to temporarily "redef" (and "restore" at the > end) the root value of global vars.
(binding [*global-var* temp-value] (run-some-tests)) :) -- 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