Ensure ACCEPT_CONTEXT is called for results from component()
[catagits/Catalyst-Runtime.git] / t / unit_core_mvc.t
index 9d35067..4c83859 100644 (file)
@@ -108,7 +108,7 @@ is ( MyApp->model , 'MyApp::Model::M', 'default_model in class method ok');
     is_deeply( [ MyApp->controller( qr{Dummy\::Model$} ) ], [ 'MyApp::Controller::Model::Dummy::Model' ], 'regexp controller ok' );
     is_deeply( [ MyApp->model( qr{Dum{2}y} ) ], [ 'MyApp::Model::Dummy::Model' ], 'regexp model ok' );
     
-    # ACCEPT_CONTEXT w/ qr{}
+    # object w/ qr{}
     is_deeply( [ MyApp->model( qr{Test} ) ], [ MyApp->components->{'MyApp::Model::Test::Object'} ], 'Object returned' );
 
     {
@@ -116,7 +116,7 @@ is ( MyApp->model , 'MyApp::Model::M', 'default_model in class method ok');
         no warnings 'redefine';
         local *Catalyst::Log::warn = sub { $warnings++ };
 
-        # ACCEPT_CONTEXT w/ regexp fallback
+        # object w/ regexp fallback
         is_deeply( [ MyApp->model( 'Test' ) ], [ MyApp->components->{'MyApp::Model::Test::Object'} ], 'Object returned' );
         ok( $warnings, 'regexp fallback warnings' );
     }