That doesn't to work for me here:

(defn disable-bulletin [f]
  (info "Mocking out Bulletin Connect SMS API")
  (binding [com.jobsheet.util.bulletin/send-sms (fn [a b] (info "---->
Sending mock SMS"))]
    (f)))

(use-fixtures :once disable-bulletin)

I even tried declaring the disable-bulletin function in the
com.jobsheet.util.bulletin namespace to no joy.  Time to read up more on
bindings.
Mark

On Mon, Sep 28, 2009 at 8:36 PM, C. Florian Ebeling <
florian.ebel...@gmail.com> wrote:

>
> (binding [existing-function (fn [a b] ...)]
>   ;; your tests here
>    )
>

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to