Skip to content

Commit

Permalink
Add test for ignoring ~$ files
Browse files Browse the repository at this point in the history
  • Loading branch information
abh authored and spf13 committed Mar 1, 2014
1 parent e53bc94 commit 2c0ded7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions source/content_directory_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 2c0ded7

Please sign in to comment.