test copy-from-classpath first
This commit is contained in:
parent
843e0eaaec
commit
999b041925
3 changed files with 18 additions and 0 deletions
4
src/cryogen_core/classpath_able_io.clj
Normal file
4
src/cryogen_core/classpath_able_io.clj
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
(ns cryogen-core.classpath-able-io
|
||||||
|
(:require [clojure.java.io :as io]
|
||||||
|
[clojure.string :as s]
|
||||||
|
[me.raynes.fs :as fs]))
|
0
test-resources/js/dummy.js
Normal file
0
test-resources/js/dummy.js
Normal file
14
test/cryogen_core/classpath_able_io_test.clj
Normal file
14
test/cryogen_core/classpath_able_io_test.clj
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
(ns cryogen-core.classpath-able-io-test
|
||||||
|
(:require [clojure.test :refer :all]
|
||||||
|
[clojure.string :as s]
|
||||||
|
[cryogen-core.io :as sut]))
|
||||||
|
|
||||||
|
(def theme "bootstrap4-test")
|
||||||
|
|
||||||
|
(def target "target/tmp")
|
||||||
|
|
||||||
|
(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")))))
|
Loading…
Reference in a new issue