[Bast-commits] r5943 - DBIx-Class/0.08/trunk/t

arcanez at dev.catalyst.perl.org arcanez at dev.catalyst.perl.org
Wed Apr 22 03:21:28 GMT 2009


Author: arcanez
Date: 2009-04-22 04:21:28 +0100 (Wed, 22 Apr 2009)
New Revision: 5943

Modified:
   DBIx-Class/0.08/trunk/t/90ensure_class_loaded.t
Log:
un-todo these tests, load_optional_class is fixed

Modified: DBIx-Class/0.08/trunk/t/90ensure_class_loaded.t
===================================================================
--- DBIx-Class/0.08/trunk/t/90ensure_class_loaded.t	2009-04-21 23:53:04 UTC (rev 5942)
+++ DBIx-Class/0.08/trunk/t/90ensure_class_loaded.t	2009-04-22 03:21:28 UTC (rev 5943)
@@ -64,12 +64,9 @@
     q/0;/,
   );
 
-  TODO: {
-    local $TODO = "Current load_optional_class cannot find PAR";
-    $retval = eval { $schema->load_optional_class('VIRTUAL::PAR::PACKAGE') };
-    ok( $@, 'load_optional_class of a no-true-returning PAR module did throw' );
-    ok( !$retval, 'no-true-returning PAR package not loaded' );
-  }
+  $retval = eval { $schema->load_optional_class('VIRTUAL::PAR::PACKAGE') };
+  ok( $@, 'load_optional_class of a no-true-returning PAR module did throw' );
+  ok( !$retval, 'no-true-returning PAR package not loaded' );
 
   # simulate a normal class (no one adjusted %INC so it will be tried again
   @code = (
@@ -77,12 +74,9 @@
     q/1;/,
   );
 
-  TODO: {
-    local $TODO = "Current load_optional_class cannot find PARs";
-    $retval = eval { $schema->load_optional_class('VIRTUAL::PAR::PACKAGE') };
-    ok( !$@, 'load_optional_class of a PAR module did not throw' );
-    ok( $retval, 'PAR package "loaded"' );
-  }
+  $retval = eval { $schema->load_optional_class('VIRTUAL::PAR::PACKAGE') };
+  ok( !$@, 'load_optional_class of a PAR module did not throw' );
+  ok( $retval, 'PAR package "loaded"' );
 
   # see if we can still load stuff with the coderef present
   $retval = eval { $schema->load_optional_class('DBIx::Class::ResultClass::HashRefInflator') };




More information about the Bast-commits mailing list