[Frontend] Fixed bug that gave a bad redirect on page edit.

This commit is contained in:
Caleb Spare
2011-02-09 13:06:00 -08:00
parent fb240fa79e
commit db3d534ee5
2 changed files with 5 additions and 3 deletions
+4 -2
View File
@@ -36,8 +36,9 @@ context "Frontend" do
side_1 = page_1.sidebar
post "/edit/A",
:footer => 'footer', :sidebar => 'sidebar', :message => 'def'
:footer => 'footer', :page => "A", :sidebar => 'sidebar', :message => 'def'
follow_redirect!
assert_equal "/A", last_request.fullpath
assert last_response.ok?
@wiki.clear_cache
@@ -62,6 +63,7 @@ context "Frontend" do
:rename => "C",
:format => page_1.format, :message => 'def'
follow_redirect!
assert_equal "/C", last_request.fullpath
assert last_response.ok?
@wiki.clear_cache
@@ -139,4 +141,4 @@ context "Frontend" do
def app
Precious::App
end
end
end