Skip to content

Commit c767fa9

Browse files
committed
Add some more tests
1 parent 4b4db5e commit c767fa9

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/test-buttercup-filesystem.el

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,22 @@
4949
(with-buttercup-filesystem '(("foo/bar" "amazing content"))
5050
(expect "foo/bar" :to-contain "amazing content")))
5151

52+
(it "should know how to match file content"
53+
(with-buttercup-filesystem '(("foo" "content with a lot of stuff"))
54+
(expect "foo" :content-to-match "with a")))
55+
5256
(it "should nest files recursively"
5357
(with-buttercup-filesystem '(("foo" ("bar" "baz" "bam/"))
5458
("a/b" ("c" "d/"))
5559
("x" (("y" ("z"))
60+
("content" "content")
5661
"w")))
5762
(expect "foo/bar" :to-be-file)
5863
(expect "foo/baz" :to-be-file)
5964
(expect "foo/bam" :to-be-directory)
6065
(expect "a/b/c" :to-be-file)
6166
(expect "a/b/d" :to-be-directory)
6267
(expect "x/y/z" :to-be-file)
68+
(expect "x/content" :to-be-file)
69+
(expect "x/content" :to-contain "content")
6370
(expect "x/w" :to-be-file))))

0 commit comments

Comments
 (0)