Add test for ignoring ~$ files
authorAsk Bjørn Hansen <ask@develooper.com>
Sat, 1 Mar 2014 04:18:06 +0000 (20:18 -0800)
committerspf13 <steve.francia@gmail.com>
Sat, 1 Mar 2014 04:24:09 +0000 (23:24 -0500)
source/content_directory_test.go

index 7f06160466303644655793da4853b4e12ee2876a..d8ed8128ab87a9bbe2bf7b801b3314bc95da54a5 100644 (file)
@@ -15,6 +15,10 @@ func TestIgnoreDotFiles(t *testing.T) {
                {".barfoo.md", true},
                {".md", true},
                {"", true},
+               {"foobar/barfoo.md~", true},
+               {".foobar/barfoo.md~", true},
+               {"foobar~/barfoo.md", false},
+               {"foobar/bar~foo.md", false},
        }
 
        for _, test := range tests {