Fix symlink base path, don't allow symlinks in bare repos.
This commit is contained in:
@@ -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' })
|
||||
|
||||
Reference in New Issue
Block a user