From: Jess Robinson Date: Mon, 6 Feb 2006 12:15:43 +0000 (+0000) Subject: Add Class::Inspector recommends, make resultsetmanager test skip if not installed X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=cc6504dcebbf6dc3155d483f555eca800e99ee48;p=dbsrgits%2FDBIx-Class-Historic.git Add Class::Inspector recommends, make resultsetmanager test skip if not installed --- diff --git a/Build.PL b/Build.PL index 3a2a75b..e972d77 100644 --- a/Build.PL +++ b/Build.PL @@ -22,6 +22,7 @@ my %arguments = ( recommends => { 'Data::UUID' => 0, 'Module::Find' => 0, + 'Class::Inspector' => 0, }, create_makefile_pl => 'passthrough', create_readme => 1, diff --git a/Changes b/Changes index ea4f1ed..b290107 100644 --- a/Changes +++ b/Changes @@ -1,6 +1,10 @@ Revision history for DBIx::Class -0.05001 2006-02-06 15:28:10 +0.05002 2006-02-06 12:12:03 + - Added recommends for Class::Inspector + - Added skip_all to t/40resultsetmanager.t if no Class::Inspector available + +0.05001 2006-02-05 15:28:10 - debug output now prints NULL for undef params - multi-step prefetch along the same rel (e.g. for trees) now works - added multi-join (join => [ 'foo', 'foo' ]), aliases second to foo_2 diff --git a/t/40resultsetmanager.t b/t/40resultsetmanager.t index dfac9b6..97f6fc7 100644 --- a/t/40resultsetmanager.t +++ b/t/40resultsetmanager.t @@ -7,7 +7,12 @@ use Test::More; use lib qw(t/lib); use DBICTest::Extra; -plan tests => 4; +BEGIN { + eval "use Class::Inspector"; + plan $@ + ? ( skip_all => 'needs Class:Inspector for testing' ) + : ( tests => 4 ); +} my $schema = DBICTest::Extra->compose_connection('DB', 'foo'); my $rs = $schema->resultset('Foo'); @@ -15,4 +20,4 @@ my $rs = $schema->resultset('Foo'); ok( !DB::Foo->can('bar'), 'Foo class does not have bar method' ); ok( $rs->can('bar'), 'Foo resultset class has bar method' ); isa_ok( $rs, 'DBICTest::Extra::Foo::_resultset', 'Foo resultset class is correct' ); -is( $rs->bar, 'good', 'bar method works' ); \ No newline at end of file +is( $rs->bar, 'good', 'bar method works' );