test copy-from-classpath first

This commit is contained in:
jem 2019-11-29 16:29:58 +01:00
parent 843e0eaaec
commit 999b041925
3 changed files with 18 additions and 0 deletions

View 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]))

View file

View 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")))))