7 use lib "$FindBin::Bin/lib";
11 => 'set TEST_LONG to enable this test. It takes about 1 minute to run.'
12 unless $ENV{TEST_LONG};
15 use Catalyst::Test 'TestApp';
19 event => '/cron/every_minute',
22 # test that the event does not execute when we first start up
24 ok( my $res = request('http://localhost/'), 'request ok' );
25 is( $res->content, 'default', 'response ok' );
26 is( -e "$FindBin::Bin/lib/TestApp/every_minute.log", undef, 'every_minute did not execute, ok' );
27 unlink "$FindBin::Bin/lib/TestApp/every_minute.log";
33 # test that the event does execute
35 ok( my $res = request('http://localhost/'), 'request ok' );
36 is( $res->content, 'default', 'response ok' );
37 is( -e "$FindBin::Bin/lib/TestApp/every_minute.log", 1, 'every_minute executed ok' );
38 unlink "$FindBin::Bin/lib/TestApp/every_minute.log";