6 use lib "$FindBin::Bin/lib";
10 use_ok('Catalyst::View::TT');
11 use_ok('Catalyst::Test', 'TestApp');
15 my $view = new Catalyst::View::TT("TestApp", {});
17 # Can't Test::Memory::Cycle test since it doesn't detect
18 # [ sub { $copy->paths } ]
19 # as a cycle, but the above does prevent it getting garbage collected.
21 # memory_cycle_ok($view, 'No cycles in View');
24 Scalar::Util::weaken($copy);
27 ok(!defined $copy, 'Copy went out of scope');