Arango-Tango

 view release on metacpan or  search on metacpan

t/03-document.t  view on Meta::CPAN

is scalar(@$list), 5;
my $prometheus = $collection->document("P");
is $prometheus->{name} => "Prometheus";

$collection->delete_document("P");
$list = $collection->document_paths();
is scalar(@$list), 4;
eval {
    my $prometheus2 = $collection->document("P");
};
ok ( $@ =~ /404/);



my $ans = $collection->truncate;
is $ans->{name}, "collection";

$list = $collection->document_paths();
is scalar(@$list), 0;

$arango->delete_database("tmp_");



( run in 1.789 second using v1.01-cache-2.11-cpan-39bf76dae61 )