Exception stuff is fixed for a while now.
[catagits/Catalyst-Runtime.git] / t / live_component_controller_context_closure.t
CommitLineData
d9d8aa51 1use strict;
2use warnings;
3use Test::More;
4
5BEGIN {
ec9984c8 6 unless (eval 'use CatalystX::LeakChecker 0.05; 1') {
7 plan skip_all => 'CatalystX::LeakChecker 0.05 required for this test';
d9d8aa51 8 }
9
10 plan tests => 4;
11}
12
13use FindBin;
14use lib "$FindBin::Bin/lib";
15
16use Catalyst::Test 'TestApp';
17
18{
19 my ($resp, $ctx) = ctx_request('/contextclosure/normal_closure');
20 ok($resp->is_success);
21 is($ctx->count_leaks, 1);
22}
23
24{
25 my ($resp, $ctx) = ctx_request('/contextclosure/context_closure');
26 ok($resp->is_success);
27 is($ctx->count_leaks, 0);
28}