Changes for clojure.test/use-fixtures

cloojure on Thu, 10 Jul 2014
; This fixture is intended to perform setup/teardown for each individual test in the namespace. Note that it assumes the :once fixture will handle creating/destroying the DB, while we only create/drop tables within the DB.
(defn another-fixture [f]
        (create-db-table)
        (f)
        (drop-db-table))

; Here we register another-fixture to wrap each test in the namespace
(use-fixtures :each another-fixture)
cloojure on Thu, 10 Jul 2014
; This fixture is intended to perform setup/teardown for each individual test in the namespace
(defn another-fixture [f]
        (load-sample-data)
        (f)
        (discard-sample-data))

; Here we register another-fixture to wrap each test in the namespace
(use-fixtures :each another-fixture)
cloojure on Thu, 10 Jul 2014
; Here we register another-fixture to be called once FOR EACH TEST,
; performing setup/teardown for each test in the namespace
(use-fixtures :each my-test-fixture)