Fix endless loop on BareSourcelessResultClass->throw_exception(...)
[dbsrgits/DBIx-Class.git] / t / 60core.t
index f92159b..9ee9b6d 100644 (file)
@@ -636,4 +636,6 @@ SKIP: {
 
 throws_ok { $schema->resultset} qr/resultset\(\) expects a source name/, 'resultset with no argument throws exception';
 
+throws_ok { $schema->source('Artist')->result_class->new( 'bugger' ) } qr/must be a hashref/;
+
 done_testing;