File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change 49
49
(with-buttercup-filesystem '((" foo/bar" " amazing content" ))
50
50
(expect " foo/bar" :to-contain " amazing content" )))
51
51
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
+
52
56
(it " should nest files recursively"
53
57
(with-buttercup-filesystem '((" foo" (" bar" " baz" " bam/" ))
54
58
(" a/b" (" c" " d/" ))
55
59
(" x" ((" y" (" z" ))
60
+ (" content" " content" )
56
61
" w" )))
57
62
(expect " foo/bar" :to-be-file )
58
63
(expect " foo/baz" :to-be-file )
59
64
(expect " foo/bam" :to-be-directory )
60
65
(expect " a/b/c" :to-be-file )
61
66
(expect " a/b/d" :to-be-directory )
62
67
(expect " x/y/z" :to-be-file )
68
+ (expect " x/content" :to-be-file )
69
+ (expect " x/content" :to-contain " content" )
63
70
(expect " x/w" :to-be-file ))))
You can’t perform that action at this time.
0 commit comments