From: Michael G Schwern Date: Wed, 13 Feb 2008 07:11:54 +0000 (-0800) Subject: Fix the test to skip if MyFoo won't load. X-Git-Tag: v0.08240~541^2~24 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=895b576d77f033255f80ebf7464a7f3f198ac98a;p=dbsrgits%2FDBIx-Class.git Fix the test to skip if MyFoo won't load. --- diff --git a/t/cdbi-t/columns_as_hashes.t b/t/cdbi-t/columns_as_hashes.t index 24dbc2a..3eca270 100644 --- a/t/cdbi-t/columns_as_hashes.t +++ b/t/cdbi-t/columns_as_hashes.t @@ -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',