$c->flash->{foo} = "moose";
-$c->finalize_headers;
+$c->finalize;
is_deeply( $c->flash, { foo => "moose" }, "one key in flash" );
is_deeply( $c->flash, { foo => "moose", bar => "gorch" }, "two keys in flash" );
-$c->finalize_headers;
+$c->finalize;
is_deeply( $c->flash, { bar => "gorch" }, "one key in flash" );
-$c->finalize_headers;
+$c->finalize;
$c->flash->{test} = 'clear_flash';
-$c->finalize_headers;
+$c->finalize;
$c->clear_flash();
is_deeply( $c->flash, {}, "nothing in flash after clear_flash" );
-$c->finalize_headers;
+$c->finalize;
is_deeply( $c->flash, {}, "nothing in flash after finalize after clear_flash" );
$c->config->{session}{flash_to_stash} = 1;
-$c->finalize_headers;
+$c->finalize;
$c->prepare_action;
is_deeply( $c->stash, { bar => "gorch" }, "flash copied to stash" );