test now is fine
parent
999b041925
commit
965ceda614
@ -1,14 +1,22 @@
|
||||
(ns cryogen-core.classpath-able-io-test
|
||||
(:require [clojure.test :refer :all]
|
||||
[clojure.string :as s]
|
||||
[cryogen-core.io :as sut]))
|
||||
[clojure.java.io :as io]
|
||||
[cryogen-core.classpath-able-io :as sut]))
|
||||
|
||||
(def theme "bootstrap4-test")
|
||||
|
||||
(def target "target/tmp")
|
||||
|
||||
(defn verify-file-exists [path]
|
||||
(.exists (io/file path)))
|
||||
|
||||
(defn verify-dir-exists [path]
|
||||
(and (verify-file-exists path)
|
||||
(.isDirectory (io/file path))))
|
||||
|
||||
(deftest test-copy-resources-from-theme
|
||||
(is (do
|
||||
(sut/copy-resources-from-theme theme target)
|
||||
(verify-dir-exists (str target "/js")
|
||||
(verify-file-exists (str target "/js/dummy.js")))))
|
||||
(and (verify-dir-exists (str target "/js"))
|
||||
(verify-file-exists (str target "/js/dummy.js"))))))
|
Loading…
Reference in New Issue