Call to_url on rename to prevent invalid renames.

Remove to_url on delete so invalid names can be deleted.
Handle nil in to_url.
Update tests.
This commit is contained in:
bootstraponline
2012-07-22 13:37:09 -06:00
parent 3424a424a7
commit 3e5054f357
2 changed files with 6 additions and 4 deletions
+1 -1
View File
@@ -88,7 +88,7 @@ context "Frontend" do
:rename => "C", :page => 'B',
:format => page_1.format, :message => 'def'
follow_redirect!
assert_equal "/C", last_request.fullpath
assert_equal '/c', last_request.fullpath
assert last_response.ok?
@wiki.clear_cache