X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fresultset_class.t;h=5aa7a92eec9b1ef68fd57a83b9d17d3afe91fb96;hb=415193793de389fdd4e5ce547f4d615fe9d3c033;hp=078c57b9515fb068d4280952df0f6330e154f8d3;hpb=fac560c2bcc31d5ab5f981abc521a41501cb1e8a;p=dbsrgits%2FDBIx-Class.git diff --git a/t/resultset_class.t b/t/resultset_class.t index 078c57b..5aa7a92 100644 --- a/t/resultset_class.t +++ b/t/resultset_class.t @@ -1,5 +1,3 @@ -#!/usr/bin/perl - use strict; use warnings; use Test::More; @@ -7,11 +5,10 @@ use Class::Inspector (); unshift(@INC, './t/lib'); use lib 't/lib'; -plan tests => 5; use DBICTest; -is(DBICTest::Schema->source('Artist')->resultset_class, 'DBIx::Class::ResultSet', 'default resultset class'); +is(DBICTest::Schema->source('Artist')->resultset_class, 'DBICTest::BaseResultSet', 'default resultset class'); ok(!Class::Inspector->loaded('DBICNSTest::ResultSet::A'), 'custom resultset class not loaded'); DBICTest::Schema->source('Artist')->resultset_class('DBICNSTest::ResultSet::A'); ok(Class::Inspector->loaded('DBICNSTest::ResultSet::A'), 'custom resultset class loaded automatically'); @@ -20,3 +17,5 @@ is(DBICTest::Schema->source('Artist')->resultset_class, 'DBICNSTest::ResultSet:: my $schema = DBICTest->init_schema; my $resultset = $schema->resultset('Artist')->search; isa_ok($resultset, 'DBICNSTest::ResultSet::A', 'resultset is custom class'); + +done_testing;