App-Dest
view release on metacpan or search on metacpan
warn $e;
}
}, "Directory actions already added\n", 'no re-add actions' );
ok( lives { App::Dest->rm('actions') }, 'rm actions' ) or note $@;
stdout_is( sub { App::Dest->watches }, '', 'watches (no results)' );
ok( lives { App::Dest->add('actions') }, 'add actions' ) or note $@;
stderr_is( sub {
try {
App::Dest->add('not_exists');
}
catch ($e) {
warn $e;
}
}, "Directory specified does not exist\n", 'no add not exists' );
stdout_is( sub { App::Dest->watches }, "actions\n", 'watches (results)' );
ok( lives { App::Dest->putwatch('dest.watch2') }, 'putwatch' ) or note $@;
stdout_is( sub { App::Dest->watches }, "actions\nactions2\n", 'watches (results) 2' );
ok( lives { App::Dest->writewatch }, 'writewatch' ) or note $@;
( run in 0.332 second using v1.01-cache-2.11-cpan-0a987023a57 )