FAIL
t0m [Thu, 30 Apr 2009 23:02:12 +0000 (00:02 +0100)]
t/05_dynamiccontrollers.t [new file with mode: 0644]

diff --git a/t/05_dynamiccontrollers.t b/t/05_dynamiccontrollers.t
new file mode 100644 (file)
index 0000000..e6cc2c9
--- /dev/null
@@ -0,0 +1,19 @@
+use strict;
+use warnings;
+
+use FindBin qw/$Bin/;
+use lib "$Bin/lib";
+
+use Moose::Util qw/does_role/;
+
+use Test::More tests => 2;
+
+use DynamicAppDemo;
+
+# Naughty, should make an app instance.
+my $controller = DynamicAppDemo->controller('One');
+
+ok $controller;
+ok ! $controller->action_for('get_reflected_action_methods'),
+    'not leaking actions';
+