Fix symlink base path, don't allow symlinks in bare repos.

This commit is contained in:
Charles Pence
2013-03-16 22:00:19 -04:00
parent e21ec540c2
commit 90bbb8e348
5 changed files with 48 additions and 34 deletions
+7
View File
@@ -485,11 +485,13 @@ context "Frontend with lotr" do
# .
# ├── Bilbo-Baggins.md
# ├── Data.csv
# |-- Data-Two.csv -> Data.csv
# ├── Gondor
# │   ├── Boromir.md
# │   ├── _Footer.md
# │   ├── _Header.md
# │   └── _Sidebar.md
# |-- Hobbit.md -> Bilbo-Baggins.md
# ├── Home.textile
# ├── Mordor
# │   ├── Eye-Of-Sauron.md
@@ -528,6 +530,11 @@ context "Frontend with lotr" do
assert body.include?("Eye Of Sauron"), "/pages/Mordor/ should include the page 'Eye Of Sauron'"
end
test "symbolic link pages" do
get "/Hobbit"
assert_match /Bilbo Baggins/, last_response.body
end
# base path requires 'map' in a config.ru to work correctly.
test "create pages within sub-directories using base path" do
Precious::App.set(:wiki_options, { :base_path => 'wiki' })