Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorAsk Bjørn Hansen <ask@develooper.com>2014-03-01 08:18:06 +0400
committerspf13 <steve.francia@gmail.com>2014-03-01 08:24:09 +0400
commit2c0ded7f9fd2fdcab1f421652561e680c467d1d2 (patch)
treeebfb72d33123f6a9e3b54cd0c0de8104d3331e1b /source
parente53bc948a5932805be4b0d29f1d809f7d5938cab (diff)
Add test for ignoring ~$ files
Diffstat (limited to 'source')
-rw-r--r--source/content_directory_test.go4
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 {