Permalink
Browse files

Add a test for nested directories

  • Loading branch information...
1 parent a7f636c commit 2eee580d5380f3fee083b6ad0fc1f2a677cf7075 @pbiggar pbiggar committed Oct 6, 2012
@@ -45,3 +45,11 @@
(let [manifest (io/file "test/fixtures/assets/javascripts/emacs_test/emacs.js.dieter")
files (manifest-files manifest)]
(is (not (contains-file? files (io/file "test/fixtures/assets/javascripts/emacs_test/nested/.#testfile.coffee"))))))
+
+
+(deftest test-nested-directories
+ (let [manifest (io/file "test/fixtures/assets/javascripts/nested-dirs.js.dieter")
+ files (manifest-files manifest)]
+ (is (contains-file? files (io/file "test/fixtures/assets/javascripts/nested-dirs/nested1/a.js")))
+ (is (contains-file? files (io/file "test/fixtures/assets/javascripts/nested-dirs/nested1/b.js")))
+ (is (contains-file? files (io/file "test/fixtures/assets/javascripts/nested-dirs/nested2/c.js")))))
@@ -0,0 +1 @@
+["nested-dirs/"]

0 comments on commit 2eee580

Please sign in to comment.