Skip to content

Commit

Permalink
Back out my bogus test from r4902 - this warning was never supposed t…
Browse files Browse the repository at this point in the history
…o be here in the first place - we are essentially dynamically subclassing Artist (although in a very sloppy way)
  • Loading branch information
ribasushi committed Apr 21, 2009
1 parent 2461ae1 commit e1f06f1
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions t/63register_class.t
@@ -1,19 +1,14 @@
use strict;
use warnings;

use Test::More tests => 3;
use Test::More tests => 2;
use lib qw(t/lib);
use DBICTest;
use DBICTest::Schema;
use DBICTest::Schema::Artist;

DBICTest::Schema::Artist->source_name('MyArtist');
{
my $w;
local $SIG{__WARN__} = sub { $w = shift };
DBICTest::Schema->register_class('FooA', 'DBICTest::Schema::Artist');
like ($w, qr/use register_extra_source/, 'Complain about using register_class on an already-registered class');
}
DBICTest::Schema->register_class('FooA', 'DBICTest::Schema::Artist');

my $schema = DBICTest->init_schema();

Expand Down

0 comments on commit e1f06f1

Please sign in to comment.