Updated tests to reflect new cookie scheme (from rev 17).
This commit is contained in:
parent
bba0cf6b10
commit
5f31d12a6f
|
@ -32,7 +32,7 @@ class WikiControllerTest < Test::Unit::TestCase
|
||||||
|
|
||||||
get :authenticate, :web => 'wiki1', :password => 'pswd'
|
get :authenticate, :web => 'wiki1', :password => 'pswd'
|
||||||
assert_redirected_to :web => 'wiki1', :action => 'show', :id => 'HomePage'
|
assert_redirected_to :web => 'wiki1', :action => 'show', :id => 'HomePage'
|
||||||
assert_equal ['pswd'], @response.cookies['web_address']
|
assert_equal ['pswd'], @response.cookies['wiki1']
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_authenticate_wrong_password
|
def test_authenticate_wrong_password
|
||||||
|
@ -40,7 +40,7 @@ class WikiControllerTest < Test::Unit::TestCase
|
||||||
|
|
||||||
r = process('authenticate', 'web' => 'wiki1', 'password' => 'wrong password')
|
r = process('authenticate', 'web' => 'wiki1', 'password' => 'wrong password')
|
||||||
assert_redirected_to :action => 'login', :web => 'wiki1'
|
assert_redirected_to :action => 'login', :web => 'wiki1'
|
||||||
assert_nil r.cookies['web_address']
|
assert_nil r.cookies['wiki1']
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_authors
|
def test_authors
|
||||||
|
|
Loading…
Reference in a new issue