From 5f31d12a6fd17414dd2aa88792b95b61da738b6b Mon Sep 17 00:00:00 2001 From: Jacques Distler Date: Fri, 9 Feb 2007 17:29:17 -0600 Subject: [PATCH] Updated tests to reflect new cookie scheme (from rev 17). --- test/functional/wiki_controller_test.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/functional/wiki_controller_test.rb b/test/functional/wiki_controller_test.rb index 3edf75b4..d5c7fe34 100755 --- a/test/functional/wiki_controller_test.rb +++ b/test/functional/wiki_controller_test.rb @@ -32,7 +32,7 @@ class WikiControllerTest < Test::Unit::TestCase get :authenticate, :web => 'wiki1', :password => 'pswd' assert_redirected_to :web => 'wiki1', :action => 'show', :id => 'HomePage' - assert_equal ['pswd'], @response.cookies['web_address'] + assert_equal ['pswd'], @response.cookies['wiki1'] end def test_authenticate_wrong_password @@ -40,7 +40,7 @@ class WikiControllerTest < Test::Unit::TestCase r = process('authenticate', 'web' => 'wiki1', 'password' => 'wrong password') assert_redirected_to :action => 'login', :web => 'wiki1' - assert_nil r.cookies['web_address'] + assert_nil r.cookies['wiki1'] end def test_authors