On Jun 10, 10:39 am, Stuart Halloway <[email protected]> wrote: > (defn use-test-is! [] > (require 'mdc.common.test-expect.test-is-adapter) > (def report-problem (ns-resolve 'mdc.common.test-expect.test-is- > adapter 'report-problem))) > > This feels a little hacky, but is there a better way?
It's not much less hacky, but you can do: (alter-var-root #'report-problem (fn [_] mdc.common.test-expect.test-is-adapter/report-problem) The only real difference is that this will preserve var metadata. -Stuart Sierra --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to [email protected] Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~----------~----~----~----~------~----~------~--~---
