like( $e->message, qr/Cannot directly delete non-Tradition object/,
"Exception has correct message" );
}
+
$f->delete( $uuid );
ok( !$f->exists( $uuid ), "Object is deleted from DB" );
ok( !$f->exists( $sid ), "Object stemma also deleted from DB" );
my $g = Text::Tradition::Directory->new( 'dsn' => $dsn );
my $scope = $g->new_scope;
is( scalar $g->traditionlist, 1, "Now one object in new directory index" );
+ my $ntobj = $g->tradition( 'CX' );
+ my @w1 = sort $ntobj->witnesses;
+ my @w2 = sort( $nt->witnesses );
+ is_deeply( \@w1, \@w2, "Looked up remaining tradition by name" );
}
}