Permalink
Browse files

Failing test for configuring controllers

  • Loading branch information...
1 parent 4d93d04 commit 54fdcfc7e4d2d8421e63d58fe377dc3be0eea97c @rafl rafl committed with Stevan Little Jun 29, 2010
Showing with 22 additions and 1 deletion.
  1. +6 −1 t/apps/Test-App/lib/Test/App/Container.pm
  2. +16 −0 t/apps/Test-App/lib/Test/App/Controller/Foo.pm
@@ -35,7 +35,12 @@ sub BUILD {
};
};
+ container 'Controller' => as {
+ container 'Foo' => as {
+ service bar => 42;
+ },
+ };
};
}
-no Bread::Board; no Moose; 1;
+no Bread::Board; no Moose; 1;
@@ -0,0 +1,16 @@
+package Test::App::Controller::Foo;
+
+use Moose;
+
+BEGIN { extends 'Catalyst::Controller' }
+
+has bar => (
+ is => 'ro',
+ isa => 'Int',
+ required => 1,
+);
+
+__PACKAGE__->meta->make_immutable;
+no Moose;
+
+1;

0 comments on commit 54fdcfc

Please sign in to comment.