Add test for no directories
This commit is contained in:
parent
f383661e5e
commit
272d688010
1 changed files with 9 additions and 0 deletions
|
@ -99,6 +99,15 @@ and more content.
|
||||||
(is (.isDirectory (File. (str "resources/public/blog/" dir))))))
|
(is (.isDirectory (File. (str "resources/public/blog/" dir))))))
|
||||||
|
|
||||||
(deftest test-copy-resources-from-markup-folders
|
(deftest test-copy-resources-from-markup-folders
|
||||||
|
(reset-resources)
|
||||||
|
(testing "No pages or posts nothing to copy"
|
||||||
|
(copy-resources-from-markup-folders
|
||||||
|
{:post-root "pages"
|
||||||
|
:page-root "posts"
|
||||||
|
:blog-prefix "/blog"})
|
||||||
|
(is (not (.isDirectory (File. (str "resources/public/blog/pages")))))
|
||||||
|
(is (not (.isDirectory (File. (str "resources/public/blog/posts"))))))
|
||||||
|
|
||||||
(reset-resources)
|
(reset-resources)
|
||||||
(doseq [mu [(markdown) (asciidoc)]]
|
(doseq [mu [(markdown) (asciidoc)]]
|
||||||
(testing (str "Test copy from markup folders (" (m/dir mu) ")")
|
(testing (str "Test copy from markup folders (" (m/dir mu) ")")
|
||||||
|
|
Loading…
Reference in a new issue