Workaround change in LWP that broke a cookie test (RT #40037)
Matt S Trout [Wed, 15 Oct 2008 19:24:16 +0000 (19:24 +0000)]
r24853@agaton (orig r8533):  andyg | 2008-10-15 20:23:04 +0100

Changes
t/lib/TestApp/Controller/Engine/Response/Cookies.pm

diff --git a/Changes b/Changes
index 758629f..0f0f279 100644 (file)
--- a/Changes
+++ b/Changes
@@ -19,6 +19,7 @@
         - Add visit, a returning ->go
 
 5.7XXXXXX XXXX
+        - Workaround change in LWP that broke a cookie test (RT #40037)
         - Back out go() since that feature's been pushed to 5.80
         - Fix some Win32 test failures
         - Add pt translation of error message (wreis)
index 4a9b2b8..8531fe7 100644 (file)
@@ -5,15 +5,15 @@ use base 'Catalyst::Base';
 
 sub one : Local {
     my ( $self, $c ) = @_;
-    $c->res->cookies->{Catalyst} = { value => 'Cool',     path => '/bah' };
-    $c->res->cookies->{Cool}     = { value => 'Catalyst', path => '/' };
+    $c->res->cookies->{catalyst} = { value => 'cool',     path => '/bah' };
+    $c->res->cookies->{cool}     = { value => 'catalyst', path => '/' };
     $c->forward('TestApp::View::Dump::Request');
 }
 
 sub two : Local {
     my ( $self, $c ) = @_;
-    $c->res->cookies->{Catalyst} = { value => 'Cool',     path => '/bah' };
-    $c->res->cookies->{Cool}     = { value => 'Catalyst', path => '/' };
+    $c->res->cookies->{catalyst} = { value => 'cool',     path => '/bah' };
+    $c->res->cookies->{cool}     = { value => 'catalyst', path => '/' };
     $c->res->redirect('http://www.google.com/');
 }