From 999b041925d659b5b6bfb2cc3d3af0f946555705 Mon Sep 17 00:00:00 2001 From: jem Date: Fri, 29 Nov 2019 16:29:58 +0100 Subject: [PATCH] test copy-from-classpath first --- src/cryogen_core/classpath_able_io.clj | 4 ++++ test-resources/js/dummy.js | 0 test/cryogen_core/classpath_able_io_test.clj | 14 ++++++++++++++ 3 files changed, 18 insertions(+) create mode 100644 src/cryogen_core/classpath_able_io.clj create mode 100644 test-resources/js/dummy.js create mode 100644 test/cryogen_core/classpath_able_io_test.clj diff --git a/src/cryogen_core/classpath_able_io.clj b/src/cryogen_core/classpath_able_io.clj new file mode 100644 index 0000000..27e1c58 --- /dev/null +++ b/src/cryogen_core/classpath_able_io.clj @@ -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])) diff --git a/test-resources/js/dummy.js b/test-resources/js/dummy.js new file mode 100644 index 0000000..e69de29 diff --git a/test/cryogen_core/classpath_able_io_test.clj b/test/cryogen_core/classpath_able_io_test.clj new file mode 100644 index 0000000..c0470c2 --- /dev/null +++ b/test/cryogen_core/classpath_able_io_test.clj @@ -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"))))) \ No newline at end of file