[Bps-public-commit] Plack-Middleware-Test-StashWarnings branch, master, updated. 261e343c9269f32ab443d2a5d4386e1a0b6a7777

Shawn Moore sartak at bestpractical.com
Thu Oct 7 15:06:34 EDT 2010


The branch, master has been updated
       via  261e343c9269f32ab443d2a5d4386e1a0b6a7777 (commit)
      from  b7b2612ec5a60a73dd8744b348e8d1dc90363e36 (commit)

Summary of changes:
 lib/Plack/Middleware/Test/StashWarnings.pm |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

- Log -----------------------------------------------------------------
commit 261e343c9269f32ab443d2a5d4386e1a0b6a7777
Author: Shawn M Moore <sartak at bestpractical.com>
Date:   Thu Oct 7 15:09:45 2010 -0400

    We get an arrayref from thaw not an array

diff --git a/lib/Plack/Middleware/Test/StashWarnings.pm b/lib/Plack/Middleware/Test/StashWarnings.pm
index 6bb9a42..c1ceaf4 100644
--- a/lib/Plack/Middleware/Test/StashWarnings.pm
+++ b/lib/Plack/Middleware/Test/StashWarnings.pm
@@ -57,7 +57,7 @@ Plack::Middleware::Test::StashWarnings - Test your application's warnings
 
   use Storable 'thaw';
   $mech->get('/__test_warnings');
-  my @warnings = thaw($mech->content);
+  my @warnings = @{ thaw($mech->content) };
   like(@warnings[0], qr/No private key/);
 
 =head1 DESCRIPTION

-----------------------------------------------------------------------



More information about the Bps-public-commit mailing list