[Jifty-commit] jifty-dbi branch, master, updated. 0.64-5-g9e37991

Jifty commits jifty-commit at lists.jifty.org
Mon Jan 24 10:31:58 EST 2011


The branch, master has been updated
       via  9e37991c91c1dd50f6bca515ea4556e56e52699e (commit)
      from  50c543c7a52483d9f73536b7d19a85509a09fcc5 (commit)

Summary of changes:
 t/05raw_value.t |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

- Log -----------------------------------------------------------------
commit 9e37991c91c1dd50f6bca515ea4556e56e52699e
Author: Thomas Sibley <trs at bestpractical.com>
Date:   Mon Jan 24 10:29:50 2011 -0500

    Only run these URI filter tests if we have URI
    
    It's an optional dep in Makefile.PL.  This resolves rt.cpan.org #65047.

diff --git a/t/05raw_value.t b/t/05raw_value.t
index 734a98b..9045bcf 100644
--- a/t/05raw_value.t
+++ b/t/05raw_value.t
@@ -6,6 +6,9 @@ use Test::More;
 BEGIN { require "t/utils.pl" }
 our (@available_drivers);
 
+eval "use URI";
+plan skip_all => "URI required for testing the URI filter" if $@;
+
 use constant TESTS_PER_DRIVER => 14;
 
 my $total = scalar(@available_drivers) * TESTS_PER_DRIVER;
@@ -33,7 +36,7 @@ SKIP: {
         my $rec = TestApp::User->new( handle => $handle );
         isa_ok($rec, 'Jifty::DBI::Record');
 
-        use URI;
+        require URI;
         my $uri = URI->new( 'http://bestpractical.com/foo' );
         my ($id) = $rec->create(uri => $uri);
         ok($id, "Successfuly created a user");

-----------------------------------------------------------------------


More information about the Jifty-commit mailing list