1 BEGIN { do "./t/lib/ANFANG.pm" or die ( $@ || $! ) }
12 my $schema = DBICTest->init_schema(cursor_class => 'DBICTest::Cursor');
15 is($schema->resultset("Artist")->search(), 3, "Three artists returned");
16 } 'Custom cursor autoloaded';
18 # test component_class reentrancy
20 DBIx::Class::Optional::Dependencies->skip_without( 'Class::Unload>=0.07' );
22 Class::Unload->unload('DBICTest::Cursor');
25 is($schema->resultset("Artist")->search(), 3, "Three artists still returned");
26 } 'Custom cursor auto re-loaded';