[Catalyst-commits] r8661 - Catalyst-Runtime/5.80/trunk/t

marcus at dev.catalyst.perl.org marcus at dev.catalyst.perl.org
Thu Nov 27 23:39:31 GMT 2008


Author: marcus
Date: 2008-11-27 23:39:31 +0000 (Thu, 27 Nov 2008)
New Revision: 8661

Modified:
   Catalyst-Runtime/5.80/trunk/t/unit_core_mvc.t
Log:
add test for calling ACCEPT_CONTEXT with class

Modified: Catalyst-Runtime/5.80/trunk/t/unit_core_mvc.t
===================================================================
--- Catalyst-Runtime/5.80/trunk/t/unit_core_mvc.t	2008-11-26 15:04:26 UTC (rev 8660)
+++ Catalyst-Runtime/5.80/trunk/t/unit_core_mvc.t	2008-11-27 23:39:31 UTC (rev 8661)
@@ -1,4 +1,4 @@
-use Test::More tests => 45;
+use Test::More tests => 46;
 use strict;
 use warnings;
 
@@ -158,6 +158,11 @@
 
     my $c = bless {}, 'MyApp';
 
+    # test accept-context with class rather than instance
+    MyApp->model('M', qw/foo bar/);
+    is_deeply($args, [qw/foo bar/], '$c->model args passed to ACCEPT_CONTEXT ok');
+
+
     $c->model('M', qw/foo bar/);
     is_deeply($args, [qw/foo bar/], '$c->model args passed to ACCEPT_CONTEXT ok');
 




More information about the Catalyst-commits mailing list