X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=t%2Fmiddleware-stash.t;h=baeb1083c59716c197d191a156bade826372942f;hp=e35e9ef902aec616985615bfcb4a233cd5adf28b;hb=fd587c517f98b124686e56d0413491161a4a9d19;hpb=4b0b748949f8aef8309806de2387296b17e5673d diff --git a/t/middleware-stash.t b/t/middleware-stash.t index e35e9ef..baeb108 100644 --- a/t/middleware-stash.t +++ b/t/middleware-stash.t @@ -14,7 +14,7 @@ use strict; $c->stash->{inner} = "inner"; $c->res->body( "inner: ${\$c->stash->{inner}}, outer: ${\$c->stash->{outer}}"); - 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; @@ -34,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;