Commit | Line | Data |
16918b4d |
1 | #!/usr/bin/evn perl |
2 | use strict; |
3 | use warnings; |
4 | |
5 | use FindBin; |
6 | use lib "$FindBin::Bin/../lib"; |
7 | |
8 | use Test::More tests => 6; |
9 | use Catalyst::Test 'TestApp'; |
10 | |
11 | # test that un-escaped can be feteched. |
12 | { |
13 | |
14 | ok( my $response = request('http://localhost/args/params/one/two') ); |
15 | ok( $response->is_success, 'Response Successful 2xx' ); |
16 | is( $response->content, 'onetwo' ); |
17 | } |
18 | |
19 | # test that request with URL-escaped code works. |
20 | { |
4ee03d72 |
21 | ok( my $response = request('http://localhost/args/param%73/one/two') ); |
16918b4d |
22 | ok( $response->is_success, 'Response Successful 2xx' ); |
23 | is( $response->content, 'onetwo' ); |
24 | } |
25 | |