my @all = $it->all;
is (@all, 3, 'Number of ->all objects matches count');
-$it->reset
+$it->reset;
is( $it->next->name, "foo", "iterator->next ok" );
is( $it->next->name, "Artist 1", "iterator->next ok" );
is( $it->next->name, "Artist 2", "iterator->next ok" );
# clean up our mess
END {
+ my $dbh = eval { $schema->storage->_dbh };
$dbh->do("DROP TABLE artist") if $dbh;
}