Skip to content
This repository
Browse code

Add a test for nested directories

  • Loading branch information...
commit 2eee580d5380f3fee083b6ad0fc1f2a677cf7075 1 parent a7f636c
Paul Biggar pbiggar authored
8 dieter-core/test/dieter/test/asset/manifest.clj
@@ -45,3 +45,11 @@
45 45 (let [manifest (io/file "test/fixtures/assets/javascripts/emacs_test/emacs.js.dieter")
46 46 files (manifest-files manifest)]
47 47 (is (not (contains-file? files (io/file "test/fixtures/assets/javascripts/emacs_test/nested/.#testfile.coffee"))))))
  48 +
  49 +
  50 +(deftest test-nested-directories
  51 + (let [manifest (io/file "test/fixtures/assets/javascripts/nested-dirs.js.dieter")
  52 + files (manifest-files manifest)]
  53 + (is (contains-file? files (io/file "test/fixtures/assets/javascripts/nested-dirs/nested1/a.js")))
  54 + (is (contains-file? files (io/file "test/fixtures/assets/javascripts/nested-dirs/nested1/b.js")))
  55 + (is (contains-file? files (io/file "test/fixtures/assets/javascripts/nested-dirs/nested2/c.js")))))
1  dieter-core/test/fixtures/assets/javascripts/nested-dirs.js.dieter
... ... @@ -0,0 +1 @@
  1 +["nested-dirs/"]
1  dieter-core/test/fixtures/assets/javascripts/nested-dirs/a.js
... ... @@ -0,0 +1 @@
  1 +"A.js"
0  dieter-core/test/fixtures/assets/javascripts/nested-dirs/nested1/a.js
No changes.
1  dieter-core/test/fixtures/assets/javascripts/nested-dirs/nested1/b.js
... ... @@ -0,0 +1 @@
  1 +"b.js"
1  dieter-core/test/fixtures/assets/javascripts/nested-dirs/nested2/c.js
... ... @@ -0,0 +1 @@
  1 +"c.js"

0 comments on commit 2eee580

Please sign in to comment.
Something went wrong with that request. Please try again.