Fixed expected redirection path in a couple of tests
This commit is contained in:
parent
b333e0797c
commit
2969b38bd0
|
@ -37,6 +37,7 @@ class AdminController < ApplicationController
|
||||||
:id => 'HomePage'
|
:id => 'HomePage'
|
||||||
rescue Instiki::ValidationError => e
|
rescue Instiki::ValidationError => e
|
||||||
flash[:error] = e.message
|
flash[:error] = e.message
|
||||||
|
# and re-render the form again
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
redirect_to :controller => 'wiki', :action => 'index'
|
redirect_to :controller => 'wiki', :action => 'index'
|
||||||
|
|
|
@ -68,7 +68,7 @@ class AdminControllerTest < Test::Unit::TestCase
|
||||||
|
|
||||||
process 'create_web', 'system_password' => 'pswd', 'name' => 'Wiki Two', 'address' => 'wiki2'
|
process 'create_web', 'system_password' => 'pswd', 'name' => 'Wiki Two', 'address' => 'wiki2'
|
||||||
|
|
||||||
assert_redirected_to :web => 'wiki2', :action => 'show', :id => 'HomePage'
|
assert_redirected_to :web => 'wiki2', :action => 'new', :id => 'HomePage'
|
||||||
wiki2 = @wiki.webs['wiki2']
|
wiki2 = @wiki.webs['wiki2']
|
||||||
assert wiki2
|
assert wiki2
|
||||||
assert_equal 'Wiki Two', wiki2.name
|
assert_equal 'Wiki Two', wiki2.name
|
||||||
|
@ -80,7 +80,7 @@ class AdminControllerTest < Test::Unit::TestCase
|
||||||
|
|
||||||
process 'create_web', 'system_password' => 'instiki', 'name' => 'Wiki Two', 'address' => 'wiki2'
|
process 'create_web', 'system_password' => 'instiki', 'name' => 'Wiki Two', 'address' => 'wiki2'
|
||||||
|
|
||||||
assert_redirected_to :web => 'wiki2', :action => 'show', :id => 'HomePage'
|
assert_redirected_to :web => 'wiki2', :action => 'new', :id => 'HomePage'
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_create_web_failed_authentication
|
def test_create_web_failed_authentication
|
||||||
|
|
Loading…
Reference in a new issue