X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=t%2Fconfigured_comps.t;h=8a84fd67498938674deb3446e99ffd246b06a508;hp=1cc0d1ad451727584e7b281e9263206b38663d22;hb=e39312ba37f13fad13d7f1acf967e40dea096278;hpb=3e5607485bfedb02a06193f653a2f05202db7a4e diff --git a/t/configured_comps.t b/t/configured_comps.t index 1cc0d1a..8a84fd6 100644 --- a/t/configured_comps.t +++ b/t/configured_comps.t @@ -62,9 +62,9 @@ use Test::More; sub user :Local Args(1) { my ($self, $c, $int) = @_; - my $user = $c->model("User")->find($int); - - $c->model("User")->zoo->a; + + Test::More::ok(my $user = $c->model("User")->find($int)); + Test::More::ok($c->model("User")->zoo->a); $c->res->body("name: $user->{name}, age: $user->{age}"); } @@ -86,13 +86,12 @@ use Test::More; }, 'Model::Zoo' => { from_component => 'Local::Model::Foo', - args => {a=>2}, + args => { a=>2 }, }, 'Model::Foo' => { from_component => 'Local::Model::Foo', args => { a=> 100 }, }, - }); MyApp->setup;