From: Jonathan Rockway Date: Sat, 22 Sep 2007 00:55:53 +0000 (+0000) Subject: change finalize to finalize_headers in test also (maybe should be finalize_session?!) X-Git-Tag: v0.19~5 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=2e8bf314a1a43e8bc714b71aa2eef176e4f8caef;p=catagits%2FCatalyst-Plugin-Session.git change finalize to finalize_headers in test also (maybe should be finalize_session?!) --- diff --git a/t/03_flash.t b/t/03_flash.t index 0ed2242..d407bd8 100644 --- a/t/03_flash.t +++ b/t/03_flash.t @@ -29,7 +29,7 @@ is_deeply( $c->flash, {}, "nothing in flash" ); $c->flash->{foo} = "moose"; -$c->finalize; +$c->finalize_headers; is_deeply( $c->flash, { foo => "moose" }, "one key in flash" ); @@ -37,21 +37,21 @@ $c->flash(bar => "gorch"); is_deeply( $c->flash, { foo => "moose", bar => "gorch" }, "two keys in flash" ); -$c->finalize; +$c->finalize_headers; is_deeply( $c->flash, { bar => "gorch" }, "one key in flash" ); -$c->finalize; +$c->finalize_headers; $c->flash->{test} = 'clear_flash'; -$c->finalize; +$c->finalize_headers; $c->clear_flash(); is_deeply( $c->flash, {}, "nothing in flash after clear_flash" ); -$c->finalize; +$c->finalize_headers; is_deeply( $c->flash, {}, "nothing in flash after finalize after clear_flash" ); @@ -59,7 +59,7 @@ $c->flash->{bar} = "gorch"; $c->config->{session}{flash_to_stash} = 1; -$c->finalize; +$c->finalize_headers; $c->prepare_action; is_deeply( $c->stash, { bar => "gorch" }, "flash copied to stash" );