Exact matching of requested pages

- /page is no longer the same as /a/page
- Deleting /page only deletes /page (before it would delete /a/page instead of /page)
- Edit currently breaks the unit tests if exact matching is enabled
- Fix redirect on create
- Add @giga's checked_dir = '' fix https://github.com/giga/gollum/commit/936958b47324a09c683cb90a2560484b47e09529
- Fix create unit test
This commit is contained in:
bootstraponline
2012-08-24 13:25:38 -06:00
parent 0bf05392e4
commit d1c72a4ff3
4 changed files with 25 additions and 15 deletions
+2 -1
View File
@@ -176,7 +176,8 @@ context "Frontend" do
name = "A"
post "/create", :content => 'abc', :page => name,
:format => 'markdown', :message => 'def'
assert last_response.ok?
# create redirects on success
assert_equal last_response.status, 302
@wiki.clear_cache
page = @wiki.page(name)