diff options
author | Ask Bjørn Hansen <ask@develooper.com> | 2014-02-28 20:18:06 -0800 |
---|---|---|
committer | spf13 <steve.francia@gmail.com> | 2014-02-28 23:24:09 -0500 |
commit | 2c0ded7f9fd2fdcab1f421652561e680c467d1d2 (patch) | |
tree | ebfb72d33123f6a9e3b54cd0c0de8104d3331e1b /source/content_directory_test.go | |
parent | e53bc948a5932805be4b0d29f1d809f7d5938cab (diff) |
Add test for ignoring ~$ files
Diffstat (limited to 'source/content_directory_test.go')
-rw-r--r-- | source/content_directory_test.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/content_directory_test.go b/source/content_directory_test.go index 7f0616046..d8ed8128a 100644 --- a/source/content_directory_test.go +++ b/source/content_directory_test.go @@ -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 { |