add an empty .gitignore to a newly created snapshot
[scpubgit/File-Tree-Snapshot.git] / t / basic.t
index 861db95..3f70b3e 100644 (file)
--- a/t/basic.t
+++ b/t/basic.t
@@ -14,6 +14,7 @@ my $tree = File::Tree::Snapshot->new(
 ok not($tree->exists), 'tree doesnt exist yet';
 ok $tree->create, 'tree creation successful';
 ok $tree->exists, 'tree does now exit';
+ok(-e "$tree_path/.gitignore", 'created .gitignore');
 
 do {
   ok(my $fh = $tree->open('>', 'foo/bar.txt', mkpath => 1), 'open file');