Massive cleanup of DateTime test dependencies, other interim
[dbsrgits/DBIx-Class.git] / t / 40resultsetmanager.t
index 97f6fc7..2ac44eb 100644 (file)
@@ -1,23 +1,22 @@
-#!/usr/bin/perl
-
 use strict;
 use warnings;
 use Test::More;
 
 use lib qw(t/lib);
-use DBICTest::Extra;
 
 BEGIN {
-    eval "use Class::Inspector";
-    plan $@
-        ? ( skip_all => 'needs Class:Inspector for testing' )
-        : ( tests => 4 );
+  local $SIG{__WARN__} = sub {};
+  require DBIx::Class::ResultSetManager;
 }
 
-my $schema = DBICTest::Extra->compose_connection('DB', 'foo');
+use DBICTest::ResultSetManager;
+
+my $schema = DBICTest::ResultSetManager->compose_namespace('DB');
 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' );
+isa_ok( $rs, 'DBICTest::ResultSetManager::Foo::_resultset', 'Foo resultset class is correct' );
 is( $rs->bar, 'good', 'bar method works' );
+
+done_testing;