Skip to content

Instantly share code, notes, and snippets.

@quux00
Created September 3, 2012 01:53
Show Gist options
  • Save quux00/3606163 to your computer and use it in GitHub Desktop.
Save quux00/3606163 to your computer and use it in GitHub Desktop.
(defn one-time-setup []
(println "one time setup"))
(defn one-time-teardown []
(println "one time teardown"))
(defn once-fixture [f]
(one-time-setup)
(f)
(one-time-teardown))
;; register as a one-time callback
(use-fixtures :once once-fixture)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment