some minor corrections
[catagits/Catalyst-Runtime.git] / t / aggregate / unit_core_component_loading.t
index 2b3e205..fe7bc23 100644 (file)
@@ -1,8 +1,5 @@
-# 3 initial tests, and 6 per component in the loop below
-# (do not forget to update the number of components in test 3 as well)
-# 5 extra tests for the loading options
-# One test for components in inner packages
-use Test::More tests => 3 + 6 * 24 + 9 + 1;
+# way too many tests to count
+use Test::More;
 
 use strict;
 use warnings;
@@ -238,6 +235,7 @@ eval "package $appclass; use Catalyst; __PACKAGE__->setup";
 is($@, '', "Didn't load component twice");
 is($appclass->model('TopLevel::Nested')->called,1, 'COMPONENT called once');
 
+# relying on regex fallback
 ok($appclass->model('TopLevel::Generated'), 'Have generated model');
 is(ref($appclass->model('TopLevel::Generated')), 'FooBarBazQuux',
     'ACCEPT_CONTEXT in generated inner package fired as expected');
@@ -256,3 +254,5 @@ eval "package $appclass; use Catalyst; __PACKAGE__->setup";
 isa_ok($appclass->controller('Test'), 'Catalyst::Controller');
 
 rmtree($libdir);
+
+done_testing;