From: John Napiorkowski Date: Wed, 3 Dec 2014 19:15:40 +0000 (-0600) Subject: fixed test that failed on older perl X-Git-Tag: 5.90079_003 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=commitdiff_plain;h=efa13fa482395db0a40aafba7e198e43759a5dc6 fixed test that failed on older perl --- diff --git a/t/middleware-stash.t b/t/middleware-stash.t index f233691..baeb108 100644 --- a/t/middleware-stash.t +++ b/t/middleware-stash.t @@ -14,11 +14,7 @@ use strict; $c->stash->{inner} = "inner"; $c->res->body( "inner: ${\$c->stash->{inner}}, outer: ${\$c->stash->{outer}}"); - use Devel::Dwarn; - my $stash = $c->stash; - Dwarn $stash; - - is_deeply [sort {$a cmp $b} keys($c->stash)], ['inner','outer'], 'both keys in stash'; + is_deeply [sort {$a cmp $b} keys(%{$c->stash})], ['inner','outer'], 'both keys in stash'; } package MyAppChild; @@ -38,7 +34,7 @@ use strict; $c->stash->{outer} = "outer"; $c->res->from_psgi_response( MyAppChild->to_app->($c->req->env) ); - is_deeply [keys($c->stash)], ['outer'], 'only one key in stash'; + is_deeply [keys(%{$c->stash})], ['outer'], 'only one key in stash'; } package MyAppParent;