Skip to content

Instantly share code, notes, and snippets.

@mwmitchell
Created March 30, 2011 15:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mwmitchell/894643 to your computer and use it in GitHub Desktop.
Save mwmitchell/894643 to your computer and use it in GitHub Desktop.
; the function i want to mock,
; in a namespace called "other"
(defn do-something [q callback]
(doseq [n [1 2 3]] (callback n)))
; the function i want to test
(defn top []
(other/do-something "q-arg" (fn [item]
(prn item))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment