X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=t%2Farg_constraints.t;h=57a90fec1918a537fdf7885050a70f62897c2553;hp=2a6636edcec533f9b1cb449fc6fe9b39affed21f;hb=a7ab9aa9757994967ef1f2ec2252cf943a4252d7;hpb=6f0b85d2a35e5b4872bf508d859fae3621d81406 diff --git a/t/arg_constraints.t b/t/arg_constraints.t index 2a6636e..57a90fe 100644 --- a/t/arg_constraints.t +++ b/t/arg_constraints.t @@ -28,6 +28,7 @@ BEGIN { as Int, where { $_ < 5 }; + # Tests using this are skipped pending deeper thought coerce User, from ContextLike, via { $_->model('User')->find( $_->req->args->[0] ) }; @@ -67,6 +68,7 @@ BEGIN { $c->res->body("name: $user->{name}, age: $user->{age}"); } + # Tests using this are current skipped pending coercion rethink sub user_object :Local Args(User) Coerce(1) { my ($self, $c, $user) = @_; $c->res->body("name: $user->{name}, age: $user->{age}"); @@ -84,7 +86,6 @@ BEGIN { sub tuple :Local Args(Tuple[Str,Int]) { my ($self, $c, $str, $int) = @_; - warn "$str $int"; $c->res->body('tuple'); } @@ -181,12 +182,15 @@ use Catalyst::Test 'MyApp'; is $res->content, 'default'; } -{ + +SKIP: { + skip "coercion support needs more thought", 1; my $res = request '/user_object/20'; is $res->content, 'default'; } -{ +SKIP: { + skip "coercion support needs more thought", 1; my $res = request '/user_object/2'; is $res->content, 'name: mary, age: 36'; }