hugo

Unnamed repository; edit this file 'description' to name the repository.

git clone git://git.shimmy1996.com/hugo.git
commit 2c0ded7f9fd2fdcab1f421652561e680c467d1d2
parent e53bc948a5932805be4b0d29f1d809f7d5938cab
Author: Ask Bjørn Hansen <ask@develooper.com>
Date:   Fri, 28 Feb 2014 20:18:06 -0800

Add test for ignoring ~$ files

Diffstat:
Msource/content_directory_test.go | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git 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 {