Fix the test to skip if MyFoo won't load.
[dbsrgits/DBIx-Class.git] / t / cdbi-t / columns_as_hashes.t
index 24dbc2a..3eca270 100644 (file)
@@ -91,8 +91,8 @@ warning_is {
 
 
 # Emulate that Class::DBI inflates immediately
-{
-    require_ok 'MyFoo';
+SKIP: {
+    skip "Need MySQL to run this test", 3 unless eval { require MyFoo };
     
     my $foo = MyFoo->insert({
         name    => 'Whatever',