Make the Sinatra app directory aware.

This commit is contained in:
Darren Oakley
2012-06-18 16:00:14 +01:00
parent b53c961db2
commit 971cbb94f6
25 changed files with 468 additions and 127 deletions
+10
View File
@@ -51,6 +51,16 @@ context "Page" do
assert_equal 'Mordor/Eye-Of-Sauron.md', page.path
end
test "url_path" do
page = @wiki.page('Bilbo Baggins')
assert_equal 'Bilbo-Baggins', page.url_path
end
test "nested url_path" do
page = @wiki.page('Eye Of Sauron')
assert_equal 'Mordor/Eye-Of-Sauron', page.url_path
end
test "page versions" do
page = @wiki.page('Bilbo Baggins')
assert_equal ["f25eccd98e9b667f9e22946f3e2f945378b8a72d", "5bc1aaec6149e854078f1d0f8b71933bbc6c2e43"],