 (ns clj-bwa.t-core
+  "Tests for clj-bwa.core."
   (:require [midje.sweet :refer :all]
             [clojure.java.io :as io]
             [me.raynes.fs :as fs]

      (.delete dir))))

(def temp-out (str temp-dir "/out"))
(def test-fa-file "test-resources/test.fa")
(def temp-fa-file (str temp-dir "/test.fa"))

(with-state-changes [(before :facts (do (prepare-cache!)
                                        (fs/copy test-fa-file

  `(binding [*out* (clojure.java.io/writer ~f)]
     ~@body))

(def temp-dir (.getPath (io/file (System/getProperty "java.io.tmpdir") "clj-bwa-test")))

(defn prepare-cache!
  []
