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=80b53f622a857f52d88b962c9999e2f83ddb27ca;hp=8d74aa87d131f845ce51d64147de5b19b054dec6;hb=c1192f1ed63f124eb2d143e10b215703e7dc6284;hpb=70949f28d6d56c8c882cd937b9c3be5e04aaba62 diff --git a/t/arg_constraints.t b/t/arg_constraints.t index 8d74aa8..80b53f6 100644 --- a/t/arg_constraints.t +++ b/t/arg_constraints.t @@ -4,10 +4,12 @@ use HTTP::Request::Common; BEGIN { use Test::More; - eval "use Types::Standard; use Type::Utils; use Type::Library; 1;" || do { - plan skip_all => "Trouble loading Types::Standard => $@"; + eval "use Type::Tiny; 1" || do { + plan skip_all => "Trouble loading Type::Tiny and friends => $@"; }; +} +BEGIN { package MyApp::Types; $INC{'MyApp/Types.pm'} = __FILE__; @@ -362,10 +364,6 @@ SKIP: { =cut - -done_testing; - -__END__ { # URI testing my ($res, $c) = ctx_request '/'; @@ -374,5 +372,17 @@ __END__ ok my $url2 = $c->uri_for($c->controller('Root')->action_for('finally'), [1,2,3,4,5,6]); warn $url2; + + ok my $url3 = $c->uri_for($c->controller('Root')->action_for('user'), 2); + warn $url3; + + ok my $url4 = $c->uri_for($c->controller('Root')->action_for('user'), [2]); + warn $url4; + } +done_testing; + +__END__ + +