Make Wiki#page case insensitive.

This commit is contained in:
Tom Preston-Werner
2010-07-22 16:06:33 -07:00
parent 1af9898b4d
commit a5d460636d
4 changed files with 14 additions and 4 deletions
+4
View File
@@ -21,6 +21,10 @@ context "Page" do
assert_equal @wiki.repo.commits.first.id, page.version.id
end
test "get existing page case insensitive" do
assert_equal @wiki.page('Bilbo Baggins').path, @wiki.page('bilbo baggins').path
end
test "get nested page" do
page = @wiki.page('Eye Of Sauron')
assert_equal 'Mordor/Eye-Of-Sauron.md', page.path